procmail
[Top] [All Lists]

Re: Duplicates sent from lists

2004-02-18 09:43:39
Bart Schaefer wrote:

I've often found it annoying that formail won't cache an arbitrary header
when using -D.  It'd be very nice to be able to say

* ? formail -xList-Post: -D 1024 listpost.cache

You can sort of hack it with:

* ? echo "Message-Id: `formail -xList-Post:`" | \
        formail -D 1024 listpost.cache

But that's three processes and plus a shell to do what one process could
have done if-only ... of course, you can extract List-Post with a MATCH
recipe to avoid one formail and the backticks, but still ...

Well, if it's any consolation, you're unlikely to be using a shell where echo isn't a built-in, so that's two formails plus a shell.

This might work:

 * ? formail -iMessage-Id: -R List-Post: Message-Id: | \
     formail -D 1024 listpost.cache




_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>