On Sun, Dec 09, 2001 at 02:56:05PM -0500, Matej Cepl <[EMAIL PROTECTED]> wrote: > Hi, > > sorry for OT question, but I think, for anybody really familiar > with procmail it will be only mild distraction. I have this very > simple recipe in my .procmailrc: > > :0: > * ^TOcstex > listy > > However, emails in this list have mungled Reply-To: directing to > the list. Could it be possible to ask procmail (or how to ask > procmail) that before moving the message to the listy folder, it > would run a message through grep -v '^Reply-To:'? And, BTW I do > not want just > > :0: > * ^TOcstex > | grep -v '^Reply-To:' >> $MAILDIR/listy > > because I would like to make it to work even when I would change > my mind and switched to maildir format. Therefore, I would > prefer, if the actual delivery would be done by procmail.
I haven't done this before and didn't test it, but something like :0 hf: * ^TOcstex | grep -v '^Reply-To:' should do what you want. Look in "man procmailrc" for filter. You need of course a second recipe to deliver the mail. Try it out before you use it, I don't know if it works or if it would destroy your mails. Nicolas