procmail
[Top] [All Lists]

insert a X-header without resending the mail

2005-07-27 08:39:16
Hallo

i want to insert a X-CHECK: header field in emails i receive.
when i use 
 
:0 
* !X-Check: IS
|formail -A "X-Check: IS" |/usr/sbin/sendmail -t

there is a new "Received: from" in the Received Email because 
SENDMAIL resends the Email.

is there a way without resending the email with formail
to add a new header field ?

maybe with SED ?

so far i understood sed  need a exsiting field to change or add something like

| sed -e 's/^Subject: \(.*\)/Subject: \1 \[#Filter Namibia Mails#\]/'

???

Matthias






____________________________________________________________
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

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