procmail
[Top] [All Lists]

Re: Duplicate mail using aliases

2004-10-09 07:54:40
Don had,

:0cw:
* !^X-Loop: xloop(_at_)mydom(_dot_)com
* ^Subject:.*ABCD dead_letter
* ^To:(_dot_)*admin(_at_)mydom(_dot_)com
| formail -k -X "From:" -X "Subject:" \
   -I "To: bhopkins, sharon, alan, mark, veronica, 
ctaylor(_at_)anotherdom(_dot_)net" \
   -X "To:" \
   -I "X-Loop: xloop(_at_)mydom(_dot_)com" -X "X-Loop:" \
   | $SENDMAIL -oi -t

and Dallman told him,

thing all about?  I hadn't looked specifically at that before.  What
are you after with that?  It may be that you are -- yes, look (5-second
experiment):

  % formail -I "X-Loop: xloop(_at_)mydom(_dot_)com" -X "X-Loop:" < SPAMPLE
   X-Loop: xloop(_at_)mydom(_dot_)com

So of course the message disappears -- all you're piping to sendmail is
the one X-Loop: header-line!

Er, no, because Don is invoking formail with the -k option. Dallman, you didn't usve -k in your test.

That wasn't the explanation.

One other problem: Don's recipe asks for a local lockfile without specifying a name and without giving procmail anything to infer a name from.


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail