procmail
[Top] [All Lists]

Re: Multiple Header (same name)

2006-05-30 13:24:42
Michelle Konzack schreef:
Ruud H.G. van Tol:

Doesn't -A do what you need?

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

I don't understandhow that is possible, here the -A does what is
documented:

    -A headerfield
         Append a custom headerfield onto the header in any case.


Testcase:
=======================
$ echo 'From: test(_at_)example(_dot_)com
To: test(_at_)example(_dot_)org

' | formail -A"X-Test: OK_1" -A"X-Test: OK_2" | formail -A"X-Test: OK_3"
From test(_at_)example(_dot_)com  Tue May 30 22:08:52 2006
From: test(_at_)example(_dot_)com
To: test(_at_)example(_dot_)org
X-Test: OK_1
X-Test: OK_2
X-Test: OK_3
=======================

The "Old-" prefix happens with "-i", not with "-A".

-- 
Groet, Ruud


____________________________________________________________
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>