<<< Date Index >>>     <<< Thread Index >>>

Re: procmail recipe to catch mail from user lisrt



On Thu, Jan 15, 2004 at 10:47:22PM -0600, Michael D Schleif wrote:
> * Matt Price <matt.price@xxxxxxxxxxx> [2004:01:15:23:10:46-0500] scribed:
> > Hey everyone,
> > 
> > soooo...  I know this isn't a procmail list, but y'all are so helpful...
> > 
> > I've set up this primitive mailing list on my office machine:
> > 
> > a simple .forward file that forwards mail sent to the address
> > foucault - at - my.personal.domain
> > 
> > to a list of email addresses (one address per line).
> > 
> > Now I want procmail to put every message sent to me from anyone on the list 
> > into a
> > special mailbox, $MAILDER/.scitechmod.
> > 
> >  So I did this in .procmailrc: 
> > 
> > :0: 
> > *  ? $FORMAIL -x From: | grep -isF -f /home/scitechmod/.forward 
> > $MAILDIR/.scitechmod/ 
> >  
> > I think it'll work... problem is, I'd like to add MYSELF to the
> > mailing list -- in fact, I have to...  but I don't want mail from me
> > to end up in the special folder.  Sooo.. think this'll work?
> > 
> > # try to filter kids' addresses to right mboxes 
> > :0: 
> > *  ? $FORMAIL -x From: | grep -isF -f /home/scitechmod/.forward 
> > * !^From:.*(matt@|matt.price@xxxxxxxxxxx) 
> > $MAILDIR/.scitechmod/ 
> > 
> > ... and is there a tricky way to test my recipes on existing mails?
> > I'm loathe to actually set this up till I know it's working.  
> 
>    <http://www.professional.org/procmail/sandbox.html>
> 
> hth
> 


thanks, this was very helpful -- turned out I had a blank line and
some leading spaces in the .forward file which were causing no end of
trouble!  fixed now, all better!

matt