procmail
[Top] [All Lists]

Re: formail header concatenation

2009-01-21 10:46:48
On 21-Jan-2009, at 08:23, Dallman Ross wrote:
I would like LuKreme to back up his assertion.  I have been meaning
to respond to your question, but have no time right now.  For the
moment I will add that I was unaware of the difference but have
been aware of a perhaps related bug, and I will detail it when I can
a bit later.  I do not agree with LuKreme's view on it at this time,
but could be persuaded with some evidence.

The whole point of concatanation is that the line in question is a SINGLE line.

Here are three Received lines:

Received: from mail.covisp.net ([75.148.117.93])
by smtpin129.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug
        4 2008; 32bit)) with ESMTP id 
<0KDT00FH3UTR7X70(_at_)smtpin129(_dot_)mac(_dot_)com> for
*munged*(_at_)me(_dot_)com (ORCPT *munged*(_at_)me(_dot_)com); Wed, 21 Jan 2009 07:25:04 -0800 (PST)

Received: from mta-2.ms.rz.rwth-aachen.de
(mta-2.ms.rz.RWTH-Aachen.DE [134.130.7.73]) by mail.covisp.net (Postfix)
        with ESMTP id 6E432118B6A2      for <kremels(_at_)kreme(_dot_)com>; Wed,
        21 Jan 2009 08:25:03 -0700 (MST)

Received: by mail.covisp.net (Postfix, from userid 1004)
        id EFF7A118B6A2; Wed,
        21 Jan 2009 08:25:03 -0700 (MST)

Notice how the folding is radically different in each one?

The tabs are in there simply to aid in reading the folded header, and are NOT part of the header. They are also completely unpredictable in where the might occur in a line. Since the tabs are not part of the header, it is improper to preserve them when folding the header back to a single line.

It also makes things much more difficult since anytime you check for a space in a header, you end up having to check for [:space:] or \s since ANY space may actually be a tab (or worse, a space+tab).

--
Advance and attack! Attack and destroy! Destroy and rejoice!

____________________________________________________________
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