Am 2006-05-25 19:56:40, schrieb Ruud H.G. van Tol:
Michelle Konzack schreef:
Ruud H.G. van Tol:
See `man formail`, the -A option.
Some header fields are not allowed to exist more than once, see
RFC-2822: Date, From, Sender, Reply-To, To, Cc, Bcc, Message_ID,
References, Subject.
I know, but I was thinking about X-Headers:
Yes, so what? Doesn't -A do what you need?
With X-Headers you can do about anything you please. You might have to
be careful with X-Loop.
The -R option of formail can also come in handy.
This is what I use currently...
for Example:
Mail with existing header:
X-Ruud: OK
Now I want to add a second Header:
echo -e "$MSG" |formail -f -A "X-Ruud: nice guy"
wich produce
Old-X-Ruud: OK
X-Ruud: nice guy
OK, I have tried to rename it with
echo -e "$MSG" |formail -f -A "X-Ruud: nice guy" -R Old-X-Ruud: X-Ruud:
which infortunatly not work...
I have to invoke formail twice with
echo -e "$MSG" |formail -f -A "X-Ruud: nice guy" |\
formail -f -R Old-X-Ruud: X-Ruud:
which I use currently and is working.
X-Ruud: OK
X-Ruud: nice guy
Greetings and nice evening
Michelle Konzack
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
____________________________________________________________
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