[Dovecot] Incomplete Subject Line
Hi,
since upgrading from 1.0.5 to latest 1.1-hg I get an incomplete subject line for mails autogenerated by one of our systems in the message list (Thunderbird and mutt). When I open the mail the subject line is intact.
It appears that the system is using multiline subjects. Example
Subject: =?ISO-8859-1?B?SG9zdG1hc3RlcjogMDAwMDEwNjM1OiBOYW1lc2U=?= =?ISO-8859-1?B?cnZlcjogTmV1dmVyZ2FiZSBvZGVyIMRuZGVydW5n?=
is printed as
Subject: Hostmaster: 000010635: Namese
in the Message list and correctly decoded as
Subject: Hostmaster: 000010635: Nameserver: Neuvergabe oder Änderung
when viewing the message.
Bug?
Regards, Bernhard
On Tue, 2007-10-16 at 11:19 +0200, Bernhard Schmidt wrote:
Hi,
since upgrading from 1.0.5 to latest 1.1-hg I get an incomplete subject line for mails autogenerated by one of our systems in the message list (Thunderbird and mutt). When I open the mail the subject line is intact.
It appears that the system is using multiline subjects. Example
Subject: =?ISO-8859-1?B?SG9zdG1hc3RlcjogMDAwMDEwNjM1OiBOYW1lc2U=?= =?ISO-8859-1?B?cnZlcjogTmV1dmVyZ2FiZSBvZGVyIMRuZGVydW5n?=
is printed as
Subject: Hostmaster: 000010635: Namese
in the Message list and correctly decoded as
Both v1.0 and v1.1 replies the same for FETCH ENVELOPE and HEADER.FIELDS. I can't think of any other ways how this could be buggy in Dovecot's side (I did find that SEARCH was buggy though).
x fetch 1 envelope
- 1 FETCH (ENVELOPE ("Thu, 03 Jun 2004 15:42:53 -0300" "=?ISO-8859-1?B?SG9zdG1hc3RlcjogMDAwMDEwNjM1OiBOYW1lc2U=?= =?ISO-8859-1?B?cnZlcjogTmV1dmVyZ2FiZSBvZGVyIMRuZGVydW5n?=" ...) x OK Fetch completed. x fetch 1 body.peek[header.fields (subject)]
- 1 FETCH (BODY[HEADER.FIELDS (SUBJECT)] {130} Subject: =?ISO-8859-1?B?SG9zdG1hc3RlcjogMDAwMDEwNjM1OiBOYW1lc2U=?= =?ISO-8859-1?B?cnZlcjogTmV1dmVyZ2FiZSBvZGVyIMRuZGVydW5n?=
)
Hi,
since upgrading from 1.0.5 to latest 1.1-hg I get an incomplete subject line for mails autogenerated by one of our systems in the message list (Thunderbird and mutt). When I open the mail the subject line is intact.
It appears that the system is using multiline subjects. Example
Subject: =?ISO-8859-1?B?SG9zdG1hc3RlcjogMDAwMDEwNjM1OiBOYW1lc2U=?= =?ISO-8859-1?B?cnZlcjogTmV1dmVyZ2FiZSBvZGVyIMRuZGVydW5n?=
is printed as
Subject: Hostmaster: 000010635: Namese
in the Message list and correctly decoded as
Both v1.0 and v1.1 replies the same for FETCH ENVELOPE and HEADER.FIELDS. I can't think of any other ways how this could be buggy in Dovecot's side (I did find that SEARCH was buggy though).
x fetch 1 envelope
- 1 FETCH (ENVELOPE ("Thu, 03 Jun 2004 15:42:53 -0300" "=?ISO-8859-1?B?SG9zdG1hc3RlcjogMDAwMDEwNjM1OiBOYW1lc2U=?= =?ISO-8859-1?B?cnZlcjogTmV1dmVyZ2FiZSBvZGVyIMRuZGVydW5n?=" ...) x OK Fetch completed. x fetch 1 body.peek[header.fields (subject)]
- 1 FETCH (BODY[HEADER.FIELDS (SUBJECT)] {130} Subject: =?ISO-8859-1?B?SG9zdG1hc3RlcjogMDAwMDEwNjM1OiBOYW1lc2U=?= =?ISO-8859-1?B?cnZlcjogTmV1dmVyZ2FiZSBvZGVyIMRuZGVydW5n?=
)
I just tcpdumped a mutt session (which also shows this behaviour)
Mail: Date: Tue, 16 Oct 2007 12:02:08 +0200 (MEST) From: Doku-Ticket System xxx@lrz-muenchen.de Reply-To: Doku-Ticket System xxx@lrz-muenchen.de To: yyy@lrz-muenchen.de, zzz@lrz-muenchen.de Subject: =?ISO-8859-1?B?SG9zdG1hc3RlcjogMDAwMDAxMDE5OiBOYW1lc2U=?= =?ISO-8859-1?B?cnZlcjogTmV1dmVyZ2FiZSBvZGVyIMRuZGVydW5n?=
IMAP: a0008 FETCH 1:1232 (UID FLAGS INTERNALDATE RFC822.SIZE BODY.PEEK[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)]) [...]
- 1190 FETCH (UID 5300 FLAGS (\Seen NonJunk) INTERNALDATE "16-Oct-2007 12:02:19 +0200" RFC822.SIZE 2196 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] {387} Message-Id: 15352895.1192528928266.JavaMail.arsadmin@wsc48.lrz-muenchen.de Date: Tue, 16 Oct 2007 12:02:08 +0200 (MEST) From: Doku-Ticket System xxx@lrz-muenchen.de Reply-To: Doku-Ticket System xxx@lrz-muenchen.de To: yyy@lrz-muenchen.de, Subject: =?ISO-8859-1?B?SG9zdG1hc3RlcjogMDAwMDAxMDE5OiBOYW1lc2U=?= Content-Type: multipart/alternative;
)
Note that the second destination is missing as well. I can't remember seeing those issues in 1.0.5 (and I'm pretty sure all other users would have complained, given that we have migrated the official mailserver to Dovecot 1.0 lately), but I don't have easy access to an 1.0 mailserver at the moment.
I'll upgrade to the latest .hg-version, but as you didn't seem to have suspected anything I guess this won't fix the issue.
Regards, Bernhard
On Sun, 2007-10-21 at 01:25 +0200, Bernhard Schmidt wrote:
Reply-To: Doku-Ticket System xxx@lrz-muenchen.de To: yyy@lrz-muenchen.de, zzz@lrz-muenchen.de Subject: =?ISO-8859-1?B?SG9zdG1hc3RlcjogMDAwMDAxMDE5OiBOYW1lc2U=?= =?ISO-8859-1?B?cnZlcjogTmV1dmVyZ2FiZSBvZGVyIMRuZGVydW5n?= .. To: yyy@lrz-muenchen.de, Subject: =?ISO-8859-1?B?SG9zdG1hc3RlcjogMDAwMDAxMDE5OiBOYW1lc2U=?=
Was this message saved by Dovecot or some external program? Does it get fixed if you delete dovecot.index.cache file?
I'll upgrade to the latest .hg-version, but as you didn't seem to have suspected anything I guess this won't fix the issue.
I just tried various ways to reproduce this, but couldn't. Maybe it got fixed already.
Hi,
Reply-To: Doku-Ticket System xxx@lrz-muenchen.de To: yyy@lrz-muenchen.de, zzz@lrz-muenchen.de Subject: =?ISO-8859-1?B?SG9zdG1hc3RlcjogMDAwMDAxMDE5OiBOYW1lc2U=?= =?ISO-8859-1?B?cnZlcjogTmV1dmVyZ2FiZSBvZGVyIMRuZGVydW5n?=
..
To: yyy@lrz-muenchen.de, Subject: =?ISO-8859-1?B?SG9zdG1hc3RlcjogMDAwMDAxMDE5OiBOYW1lc2U=?=
Was this message saved by Dovecot or some external program? Does it get fixed if you delete dovecot.index.cache file?
Ah, was just trying that and writing you the results. Yes, after deleting the index (I deleted the whole directory) the result looks fine. I'm using dovecot LDA (same version as dovecot, so somewhere between 1.1beta2 and beta3) to deliver the mail.
I can't tell whether the bug will reappear for new messages yet.
Regards, Bernhard
participants (2)
-
Bernhard Schmidt
-
Timo Sirainen