> On Tue, 19 May 2009, Oliver Stöneberg wrote:
>
> > The reset of the session before the 250 OK causes XMail to return an
> > empty message ID:
> >
> > Trying 192.168.56.98...
> > Connected to 192.168.56.98.
> > Escape character is '^]'.
> > 220 XMail ESMTP server ready
> > helo test.test
> > 250 example.com
> > mail from:<>
> > 250 OK
> > rcpt to:<[email protected]>
> > 250 OK
> > data
> > 354 Start mail input; end with <CRLF>.<CRLF>
> > ..
> > 250 OK <>
>
> This somehow got dropped inside the wrong folder and I only now noticed
> it.
> Can you be a little more specific? There is no reset in your small session
> above, and neither can such behavior be replicated in my setup.
>
I was refering to the SMTPResetSession() calls in
SMTPHandleCmd_DATA() in SMTPSvr.cpp. In 1.26-pre06 you removed the
single occurance at the end of the function and added three seperate
ones in the different cases. The empty message ID in my example is
caused by this code:
SMTPResetSession(SMTPS);
/* Send the ack only when everything is OK */
BSckVSendString(hBSock, SMTPS.pSMTPCfg->iTimeout, "250
OK <%s>",
SMTPS.szMessageID);
As SMTPResetSession() empties SMTPS.szMessageID the 250 OK will
always return an empty message ID. In the two other cases it will at
least cause an empty message ID in the SMTP log.
I hope this clarifies it.
_______________________________________________
xmail mailing list
[email protected]
http://xmailserver.org/mailman/listinfo/xmail