A NOTE has been added to this issue. ====================================================================== http://www.dbmail.org/mantis/view.php?id=497 ====================================================================== Reported By: lkneschke Assigned To: ====================================================================== Project: DBMail Issue ID: 497 Category: IMAP daemon Reproducibility: always Severity: major Priority: normal Status: new target: ====================================================================== Date Submitted: 22-Jan-07 21:42 CET Last Modified: 23-Jan-07 11:14 CET ====================================================================== Summary: wrong IMAP Response (FETCH) Description: fetch returns a strange formated imap response for one message.
One attached file contains the response from the cyrus imap server(which looks correct) and from dbmail(which looks strange). The other files contains the saved message. ====================================================================== ---------------------------------------------------------------------- lkneschke - 22-Jan-07 21:52 ---------------------------------------------------------------------- Btw, we are using gmime-2.1.19. Maybe that's the problem? ---------------------------------------------------------------------- paul - 22-Jan-07 22:08 ---------------------------------------------------------------------- Lars, Help me out here. I can't see anything obvious in the attached file. But it looks like truncated error output from the php lib. Could you plz capture the actual response from cyrus vs dbmail using ethereal/wireshark? ---------------------------------------------------------------------- aaron - 22-Jan-07 23:45 ---------------------------------------------------------------------- If you have pine installed, try mtest, it gives a pretty good analysis of protocol errors. ---------------------------------------------------------------------- lkneschke - 23-Jan-07 01:56 ---------------------------------------------------------------------- If you have a look at the file with the imap responses you will see 2 responses to the fetch uid command. The first conversation is from the cyrus imap server. It looks complete, because i fetched only on message. The second response is from dbmail. It is not the whole conversation, but only the important lines. You need to compare the response from the cyrus server which starts with: S: * 1 FETCH .... with the response from the dbmail server which starts with: S: * 514 FETCH.... They should be identical. Because we tried to fetch the same information from both servers. You can not see this, but i sent the same response to both imap servers. If you compare both responses, you will see, that after the subject "=?ISO-8859-2?Q?Re=3A_=5Bgentoo-dev=5D_New_developer=3A__?= =?ISO-8859-2?Q?Miroslav_=A9ulc_=28fordfrog=29?=" the sender will follow. The next token in the imap response is the sender, which is (("=?ISO-8859-2?Q?=22Miroslav_=A9ulc_=28fordfrog=29=22?=" NIL "fordfrog" "gentoo.org")) from the cyrus imap server and (({51} S: \"Miroslav" =?iso-8859-2?b?qXVsYw==?= "(fordfrog)\" NIL "fordfrog" "gentoo.org")) (({51} S: \"Miroslav" =?iso-8859-2?b?qXVsYw==?= "(fordfrog)\" NIL "fordfrog" "gentoo.org")) from the dbmail server. That's the captured response from the imap server , before it get's processed. That's as good as wireshark! :-) ---------------------------------------------------------------------- lkneschke - 23-Jan-07 02:06 ---------------------------------------------------------------------- I started wireshark and captured the response. Search for * 514 FETCH or go to line 172. ---------------------------------------------------------------------- paul - 23-Jan-07 11:14 ---------------------------------------------------------------------- Lars, plz test rev 2427 The result is not the same as cyrus (due to gmime behaviour). But the fetch result should now at least be compliant. Issue History Date Modified Username Field Change ====================================================================== 22-Jan-07 21:42 lkneschke New Issue 22-Jan-07 21:42 lkneschke File Added: imap_problems.txt 22-Jan-07 21:42 lkneschke File Added: [gentoo-dev] New developer: Miroslav Ć ulc (fordfrog) 22-Jan-07 21:52 lkneschke Note Added: 0001765 22-Jan-07 22:08 paul Note Added: 0001766 22-Jan-07 23:45 aaron Note Added: 0001767 23-Jan-07 01:56 lkneschke Note Added: 0001768 23-Jan-07 02:05 lkneschke File Added: borked_imap_response.txt 23-Jan-07 02:06 lkneschke Note Added: 0001769 23-Jan-07 11:14 paul Note Added: 0001772 ====================================================================== _______________________________________________ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev