procmail
[Top] [All Lists]

Re: Folding E-mail Headers

2006-04-20 20:01:14
Hi Ruud,

I'm afraid that I don't follow you on this. Are you saying that the file that 
contains the long header I want to insert ("longheader" in your example) should 
be executable and should contain more than just the header I want to insert? 
And where does the echo 'From: a' | longheader come into it?

Sorry, I'm more confused than I was before!


Craig


At 2006:04:21 02:21 +0200, Ruud H.G. van Tol wrote:
Gerald V. Livingston II schreef:

:0 fh  w
|formail -i $X_MY_HEADER

Should be:

 :0 fh  w
 |formail -i"$X_MY_HEADER"


Test:

-rwx------  longheader:

#!/usr/local/bin/procmail
   VERBOSE = 'yes'

   H_SUBJ = 'Subject: abc def ghi jkl mno pqr stu vwx yz1
abc def ghi jkl mno pqr stu vwx yz2
abc def ghi jkl mno pqr stu vwx yz3
abc def ghi jkl mno pqr stu vwx yz4'

   :0 fh w
   | formail -i"$H_SUBJ"



$ echo 'From: a' | longheader




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