procmail
[Top] [All Lists]

Message ID and Mail loops Re: Forward-copy

1997-04-10 07:28:00
Stefan Monnier 
<monnier+lists(_dot_)procmail(_at_)tequila(_dot_)cs(_dot_)yale(_dot_)edu> 
writes:

Of course, you might also want to add a message-id header
to avoid the loop with evil mails that don't have a message-id:

        :0
        * ! ^Message-ID:
        {
              DATE=`date | tr ' ' '-'`

              :0 fhw
              | formail -a "Message-ID: 
<$DATE-$$(_at_)mymachine(_dot_)mydomain>"
        }

Thanks for the info on removing duplicates...
I just checked the man-page for formail, and it looks like formail can
generate the unique message-ID for you.  The '| formail ...' line can be
replaced with:
| formail -a "Message-ID:"
which should cause formail to generate the ID.
-- 
Laurence Michaels <lmichael(_at_)gdc(_dot_)com>
Spam will be bounced.  You have been warned.

<Prev in Thread] Current Thread [Next in Thread>
  • Message ID and Mail loops Re: Forward-copy, Laurence Michaels <=