procmail
[Top] [All Lists]

The received path

2001-08-19 00:43:54

Using some ideas on this list I have the follow script:

 :0 fhW
        * ^Received:\/.*<[^>]+>
        * MATCH ?? [    ]for[   ]+<\/[^>]+
        |formail -a "X-Received-For: $MATCH"

which displays the email address used to deliver to my machine.
This is useful for me as I remove all the received lines before
archiving.

My question is how could I get a line:

X-Received-Path: email1 email2 ...

with the full list of email address used to get to my machine, ie
one from each Received line?

Best wishes,

Kalvis
_______________________________________________
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>