Since I upgraded to 3.9.1 from 3.6.x I have been sometimes encountered an issue where two duplicate messages are sent. This does not always happen, and does not seem to be correlated to message size (it's happened with 200K messages and 4K messages). In all cases one message is 1-2K larger than the other, so they are not identical -- one of the messages has a winmail.dat component like the one below, and the other does not. the MIME IDs are different for each part also.
.------=_NextPart_000_001C_01CBF37A.482A4300
Content-Type: application/ms-tnef;
name="winmail.dat"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="winmail.dat"
Platform is Windows 7 x64, Outlook 2010 connecting to Exchange 2007.
2011-04-06 09:13:54,548 DEBUG [davmail.smtp.SmtpServer] davmail - Connection from /0:0:0:0:0:0:0:1 on port 1025
2011-04-06 09:13:54,611 DEBUG [SmtpConnection-59870] davmail.exchange.ExchangeSession - Test configuration status: 302
2011-04-06 09:13:54,611 DEBUG [SmtpConnection-59870] davmail - > 220 DavMail 3.9.1-1646 SMTP ready at Wed Apr 06 09:13:54 CDT 2011
2011-04-06 09:13:54,611 DEBUG [SmtpConnection-59870] davmail - < EHLO [EDITED]
2011-04-06 09:13:54,611 DEBUG [SmtpConnection-59870] davmail - > 250-[EDITED]04CE
2011-04-06 09:13:54,611 DEBUG [SmtpConnection-59870] davmail - > 250-AUTH LOGIN PLAIN
2011-04-06 09:13:54,611 DEBUG [SmtpConnection-59870] davmail - > 250-8BITMIME
2011-04-06 09:13:54,611 DEBUG [SmtpConnection-59870] davmail - > 250 Hello
2011-04-06 09:13:54,626 DEBUG [SmtpConnection-59870] davmail - < LOGIN ********
2011-04-06 09:13:54,626 DEBUG [SmtpConnection-59870] davmail - > 334 VXNlcm5hbWU6
2011-04-06 09:13:54,626 DEBUG [SmtpConnection-59870] davmail - < ODAwODk2MTY=
2011-04-06 09:13:54,626 DEBUG [SmtpConnection-59870] davmail - > 334 UGFzc3dvcmQ6
2011-04-06 09:13:54,626 DEBUG [SmtpConnection-59870] davmail - < ********
2011-04-06 09:13:54,626 DEBUG [SmtpConnection-59870] davmail.exchange.ExchangeSession - Got session davmail.exchange.dav.DavExchangeSession@1a02097 from cache
2011-04-06 09:13:55,501 DEBUG [SmtpConnection-59870] davmail - > 235 OK Authenticated
2011-04-06 09:13:55,517 DEBUG [SmtpConnection-59870] davmail - < MAIL FROM: <[EDITED]>
2011-04-06 09:13:55,517 DEBUG [SmtpConnection-59870] davmail - > 250 Sender OK
2011-04-06 09:13:55,517 DEBUG [SmtpConnection-59870] davmail - < RCPT TO: <[EDITED]>
2011-04-06 09:13:55,517 DEBUG [SmtpConnection-59870] davmail - > 250 Recipient OK
2011-04-06 09:13:55,517 DEBUG [SmtpConnection-59870] davmail - < RCPT TO: <[EDITED]>
2011-04-06 09:13:55,517 DEBUG [SmtpConnection-59870] davmail - > 250 Recipient OK
2011-04-06 09:13:55,533 DEBUG [SmtpConnection-59870] davmail - < RCPT TO: <[EDITED]>
2011-04-06 09:13:55,533 DEBUG [SmtpConnection-59870] davmail - > 250 Recipient OK
2011-04-06 09:13:55,533 DEBUG [SmtpConnection-59870] davmail - < RCPT TO: <[EDITED]>
2011-04-06 09:13:55,533 DEBUG [SmtpConnection-59870] davmail - > 250 Recipient OK
2011-04-06 09:13:55,533 DEBUG [SmtpConnection-59870] davmail - < DATA
2011-04-06 09:13:55,533 DEBUG [SmtpConnection-59870] davmail - > 354 Start mail input; end with <CRLF>.<CRLF>
2011-04-06 09:13:58,189 DEBUG [SmtpConnection-59870] davmail - > 250 Queued mail for delivery
2011-04-06 09:13:58,189 DEBUG [SmtpConnection-59870] davmail - < MAIL FROM: <[EDITED]>
2011-04-06 09:13:58,189 DEBUG [SmtpConnection-59870] davmail - > 250 Sender OK
2011-04-06 09:13:58,189 DEBUG [SmtpConnection-59870] davmail - < RCPT TO: <[EDITED]>
2011-04-06 09:13:58,189 DEBUG [SmtpConnection-59870] davmail - > 250 Recipient OK
2011-04-06 09:13:58,189 DEBUG [SmtpConnection-59870] davmail - < DATA
2011-04-06 09:13:58,189 DEBUG [SmtpConnection-59870] davmail - > 354 Start mail input; end with <CRLF>.<CRLF>
2011-04-06 09:14:00,470 DEBUG [SmtpConnection-59870] davmail - > 250 Queued mail for delivery
2011-04-06 09:14:02,970 DEBUG [SmtpConnection-59870] davmail - < QUIT
2011-04-06 09:14:02,970 DEBUG [SmtpConnection-59870] davmail - > 221 Closing connection
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Also, Outlook preferences are set to send HTML-format messages. I know Outlook TNEF messages can sometimes be tricky -- in some cases though, as above, Outlook sends TNEF whether you want it to or not. It seems to be tripping up DavMail when it does.
Looks like Outlook sends the message twice with different recipients and probably a different body. This will not work with DavMail, as Exchange relies on message headers, not envelope information.
You should probably try to find why it decides to send the same message twice, maybe in Contact details ?
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I suspected something like that as well, but in the first block (09:13:55,501-09:13:55,533), the recipients are, for example, Persons A, B, C and D. The second block recipient (09:13:58,189) is Person E. Looking at my Sent Items in OWA, both e-mails are sent to A, B, C, D and E, and the person that complained of duplicate messages was person A. All recipients are on the same local domain.
To complicate things further, I reverted back to 3.6.6 and the duplicates immediately stopped happening -- it seems to be a new development as I had not encountered this previously on 3.6.6.
Interesting, the only thing that changed at protocol level is probably the 8BITMIME support.
Can you please try to rebuild DavMail without line 96 in SmtpConnection:
sendClient("250-8BITMIME");
Is this still open in 3.9.2 ?
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).