procmail
[Top] [All Lists]

Re: Folding E-mail Headers

2006-04-19 15:15:36
On Tue, 18 Apr 2006 17:51:56 -0700 Craig <craig(_at_)0604(_dot_)zuym(_dot_)com> 
wrote:

:0 fh w
| formail -i "X-My-Header: Long string of text here."

I'm guessing that I need to pipe this into fold somehow, but I'm not
"getting" how to do it. The fold syntax, if the header I want to insert is
in a file, would be:

fold -s -w78 x_my_header.txt

I could assign this to a variable in the recipe, which would make things
easier, like this:

x_my_header = 'X-My-Header: Long string of text here.'

Just looking at what you have. This is untested.

If your header *IS* in a file how about:

X_MY_HEADER = `fold -s -w78 /path/to/x_my_header.txt`

:0 fh  w 
| formail -i $X_MY_HEADER

Gerald

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