procmail
[Top] [All Lists]

Re: Removing line-wrapped header

2004-09-09 05:17:31
  :0
  * $ ^^\/(.+$)+$\KNOWN_HFIELD:(.*\<)?$\KNOWN_STRING\>
  * MATCH ?? ^^\/(.+$)+.
  * MATCH ?? ^^\/(.*$)+..+$
  { H_TOP = "$MATCH" }

Uhm, I don't understand all this, but never mind. KNOWN_STRING should be
able to be a regex, which means leaving out the $\ and the \<\>. That's
only details though.

  | echo "$H_TOP$H_BTM" | sed "s/$TAB/\\$NL&/g"

I believe RFC says wrapping is by at least one whitespace at the
beginning of the line, so you can't rely on the tab. Is the gawk
solution I just posted slower than these echo/sed? (Not that it really
matters.)

Volker

-- 
Volker Kuhlmann                 is possibly list0570 with the domain in header
http://volker.dnsalias.net/             Please do not CC list postings to me.

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