Wietse Venema via Postfix-users:
> Thomas M?rbauer via Postfix-users:
> > >That's rather different than what you appeared to say.  Here there's
> > >folding whitespace *before* (not in the middle of) the Message-ID.
> > Sorry, could have been more clear about that. The folding can only 
> > occur after the header label according to the non obsolete RFCs.
> > 
> > >There are no clear cut rules on what to do with folding in the
> > >middle of the Message-ID payload, and it has long been obsolete,
> > >so just tolerating whitespace after the header label should
> > >be sufficient.
> > I agree on that.
> > 
> > Is there any fix for this special case in sight or would you accept
> > patches if provided?
> 
> You're welcome to try. There is no promise it will be adopted.
> 
> Folding a Message-ID: header after the ":" will keep the line length
> under 78, only if the message ID *value* is shorter than 78. Folding
> will merely make the problem happen 12 bytes later.
> 
> If you're thinking about writing a patch to extract multiline header
> info in bounce_notify_util.c, then that patch must not accumulate
> more content than $header_size_limit (messages that are still in
> the maildrop queue can have headers that exceed this limit).

I wrote a patch for the bounce daemon that introduces about 50 new
lines to code that already needs to handle too many special cases.
It seems to work, and passes a half-dozen new unit tests.

I also wrote a more technically correct patch that relies on the
cleanup daemon to extract and save the Message-ID value (there was
no need to write new code for multiline headers, it was already
there). That added 16 relatively simple new lines to the cleanup
server, and 16 relatively simple new lines to the bounce server
(it's actually less code because some cmoments needed to be udpated).
This patch eliminated 65 lines of tricky code from the bounce daemon.

The first poatch is definitely not safe for a stable release.
The second one could be considered a small improvement.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to