On Mon, 18 May 1998, Kiyan Azarbar wrote:
> Ref: [EMAIL PROTECTED] ([EMAIL PROTECTED]), Thursday May 14. > <snip> > > But my most immediate question has to do with handling mail that is sent BOTH > to you, and to a mailing list (doesn't matter which is to: and which is cc:) I > want to get this mail in my inbox but also in the list box. This is what I > have so far: (only OCLUG group shown) > > > PATH=/bin:/usr/bin:/usr/bin > DEFAULT=/var/spool/mail/kiyan > MAILDIR=$HOME/Mail #you'd better make sure it exists > LOGFILE=$HOME/log/procmail.log #recommended > > :0c > * (^To:|^Cc:).*kiyan\@ > * (^To:|^Cc:).*oclug > $DEFAULT > > :0 > * (^To:|^Cc:).*oclug > OCLUG > > :0c > * (^Subject:).*<> > ! [EMAIL PROTECTED] > > Right now this sends a carbon copy of all mail that is BOTH to/cc me AND to/cc > the list, to my inbox... and the next recipe sends it off to the list box. The > only thing is, because of the addressing facts, I obviously get TWO copies > (one from the listserver, and one directly to me). So I end up with a > duplicate in my inbox and the listbox. > > How do I handle this more elegantly? > I think the following will do it: :0 * (^To:|^Cc:).*oclug { :0: * (^To:|^Cc:).*kiyan\@ $DEFAULT :0: OCLUG } or even: :0: * (^To:|^Cc:).*oclug * (^To:|^Cc:).*kiyan\@ $DEFAULT :0E: * (^To:|^Cc:).*oclug OCLUG Hope that helps. Chris -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]