procmail
[Top] [All Lists]

How to avoid s/\n/ /g when unfolding a header

2004-12-12 09:10:52
Hi,

I want to "unfold" a header's value that spans more than one line.
For example, the original Subject header may look like this:

Subject: =?utf-8?q?First-line-followed-by-one-space?=
 Second-line

Please note that there is only one space character in it. When I let
procmail do

 :0
  * $ ^subject:[$WS]+\/.+
  {
     av_SUBJECT = $MATCH
  }

where $WS holds the SPACE and TAB character, this results in

Assigning "av_SUBJECT==?utf-8?q?First-line-followed-by-one-space?=  Second-line"

Now the unfolded Subject got an additional space at the place the
newline was. How can I avoid replacing all these newlines by a space?

thanks,
rob.
--


____________________________________________________________
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