Diego Liziero
2008-Jun-03 08:34 UTC
[Dovecot] mbox: extra linefeed after Content-Length header in 1.1.rc8
mbox messages gets header corruption caused by an extra linefeed after Content-Length Users sees their mails in Sent mbox folder without the from and to fields, without attachments and with the date of 1/1/1970 Diego. --- Here is an anonymized header:>From xxxxxxxx at xxxxxx.xxxxxx.xxxxx.xx.xx Tue Jun 03 09:14:33 2008Message-ID: <xxxxxxxx.xxxxxxx at xxxxxx.xxxxx.xx.xx> X-UID: 3913 Status: RO X-Keywords: Content-Length: 6817 xxxx: xxx, xx xxx xxxx xx:xx:xx +xxxx xxxx: xxxxxxx xxxxxxxx <xxxxxxx.xxxxxxxx at xxxxxx.xxxxx.xx.xx> xxxx-xxxxx: xxxxxxxxxxx x.x.x.x (xxxxxxx/xxxxxxxx) xxxx-xxxxxxx: x.x xx: "xxxxxxxx at xxxxxxxx.xx" <xxxxxxxx at xxxxxxxx.xx> xx: xxxxx.xxxxxxxxxx at xxxxxxxxxxxx.xx, xxxxxx xxxxx <xxxxxx.xxxxx at xxxxxxxx.xxxxxx.xx>, xxxxxxx xxxxxxxxxxx <xxxxxxxxxx at xxxxxxxxxxx.xxx> xxxxxxx: xx: x: xx: xxxxxxxxx xxxxxxxxxx: <xxxxxxxxxxx.xxxxxxxx at xxxxxxxx.xx> xx-xxxxx-xx: <xxxxxxxxxxx.xxxxxxxx at xxxxxxxx.xx> xxxxxxx-xxxx: xxxx/xxxxx; xxxxxxx=xxx-x; xxxxxx=xxxxxx xxxxxxx-xxxxxxxx-xxxxxxxx: xxxx
Timo Sirainen
2008-Jun-03 13:05 UTC
[Dovecot] mbox: extra linefeed after Content-Length header in 1.1.rc8
On Tue, 2008-06-03 at 10:34 +0200, Diego Liziero wrote:> mbox messages gets header corruption caused by an extra linefeed after > Content-LengthFixed: http://hg.dovecot.org/dovecot-1.1/rev/e043135e971d I guess 1.1.rc9 will still come. But I'll wait a couple of days before releasing it to see if there are more bugs.. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080603/8ba72ed2/attachment-0002.bin>
Diego Liziero
2008-Jun-04 21:59 UTC
[Dovecot] mbox: extra linefeed after Content-Length header in 1.1.rc8
On Tue, Jun 3, 2008 at 3:05 PM, Timo Sirainen <tss at iki.fi> wrote:> On Tue, 2008-06-03 at 10:34 +0200, Diego Liziero wrote: >> mbox messages get header corruption caused by an extra linefeed after >> Content-Length > > Fixed: http://hg.dovecot.org/dovecot-1.1/rev/e043135e971dWorks, thank you. Now I have to fix users mbox files. As the extra linefeed is between Content-Length and Subject headers, I'm thinking about using a regexp based replace such as s/(Content-Length: [0-9]+)\n\n(Subject: )/$1\n$2/s but I can't find how to make multiple lines matching work. Any suggestion? Regards, Diego.