The following issue has been ASSIGNED.
======================================================================
http://www.dbmail.org/mantis/view.php?id=497
======================================================================
Reported By: lkneschke
Assigned To: paul
======================================================================
Project: DBMail
Issue ID: 497
Category: IMAP daemon
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
target:
======================================================================
Date Submitted: 22-Jan-07 21:42 CET
Last Modified: 30-Jan-07 20:48 CET
======================================================================
Summary: wrong IMAP Response in FETCH ENVELOPE
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.
----------------------------------------------------------------------
lkneschke - 23-Jan-07 12:55
----------------------------------------------------------------------
Nothing changed here for me.
I'll try to verify that everything went correctly from checkout to package
build process.
----------------------------------------------------------------------
lkneschke - 23-Jan-07 13:16
----------------------------------------------------------------------
I double checked everything, but the problem still exists.
I also did a new wireshark capture, but nothing changed.
SVN is up to date.
[EMAIL PROTECTED]:~/Documents/dbmail-trunk$ svn info
Path: .
URL: https://svn.ic-s.nl/svn/dbmail/branches/dbmail_2_2_branch
Repository Root: https://svn.ic-s.nl/svn/dbmail
Repository UUID: 7b491191-dbf0-0310-aff6-d879d4d69008
Revision: 2427
Node Kind: directory
Schedule: normal
Last Changed Author: paul
Last Changed Rev: 2427
Last Changed Date: 2007-01-23 11:13:01 +0100 (Di, 23 Jan 2007)
----------------------------------------------------------------------
paul - 23-Jan-07 13:30
----------------------------------------------------------------------
Lars,
Envelope construction is done at delivery time. You'll need to clear out
the envelope table for the message involved.
----------------------------------------------------------------------
lkneschke - 23-Jan-07 16:52
----------------------------------------------------------------------
Ok. The problem is solved.
I moved the message to another folder and back again. After that the
problem was gone.
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
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
23-Jan-07 12:55 lkneschke Note Added: 0001773
23-Jan-07 13:16 lkneschke Note Added: 0001774
23-Jan-07 13:16 lkneschke File Added: borked_imap_response_2.txt
23-Jan-07 13:30 paul Note Added: 0001775
23-Jan-07 16:52 lkneschke Note Added: 0001776
30-Jan-07 20:46 paul Status new => resolved
30-Jan-07 20:46 paul Resolution open => fixed
30-Jan-07 20:46 paul Fixed in Version => 2.2.2
30-Jan-07 20:48 paul Summary wrong IMAP Response
(FETCH) => wrong IMAP Response in FETCH ENVELOPE
30-Jan-07 20:48 paul Status resolved => assigned
30-Jan-07 20:48 paul Assigned To => paul
======================================================================
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev