Bug 2875 - Session disconnects before recieving multi-line error message
Summary: Session disconnects before recieving multi-line error message
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: SMTP (show other bugs)
Version: 3.8.1
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2013-02-08 15:21 UTC by Martin Nicholas
Modified: 2014-03-21 07:40 UTC (History)
0 users

See Also:


Attachments

Description Martin Nicholas 2013-02-08 15:21:47 UTC
On sending mail the session is ended (by disconnection) before the complete multi-line error message is recieved.
No QUIT command is issued. 

Claws log:
[13:29:13] ESMTP< 235 Authentication succeeded
[13:29:13] ESMTP> MAIL FROM:<eg@example.com> SIZE=420
[13:29:13] SMTP< 250 OK
[13:29:13] SMTP> RCPT TO:<blackhole@example.com>
[13:29:13] SMTP< 250 Accepted
[13:29:13] SMTP> DATA
[13:29:13] SMTP< 451-Quota exceeded.
** error occurred on SMTP session
*** Error occurred while sending the message:
451-Quota exceeded.

Telnet session:
MAIL FROM:<eg@example.com> SIZE=420
250 OK
RCPT TO:<blackhole@example.com>
250 Accepted
data
451-Quota exceeded.
451-This message is (1 x 420) bytes,
451-but only 2 remain.
451 Try again on 6 Mar
quit
221 example.com closing connection

RFC 5321 says:
"An SMTP connection is terminated when the client sends a QUIT command.
The server responds with a positive reply code, after which it closes the connection."

In this case the missed message contains useful information and should certainly be logged
and/or popped up in a dialog. Other servers may be less forthcoming, naturally.

Cheers,

Martin (kMail refugee).
Comment 1 users 2013-12-28 19:18:02 UTC
Changes related to this bug have been committed.
Please check latest Git and update the bug accordingly.
You can also get the patch from:
http://git.claws-mail.org/

++ ChangeLog	2013-12-28 19:18:02.618862363 +0100
http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=93a46a4ab054fbebfc6faa3ad4e3e9eba6fa9024
Merge: e9ef095 597f1d7
Author: Colin Leroy <colin@colino.net>
Date:   Sat Dec 28 19:18:02 2013 +0100

    Merge branch 'master' of file:///home/git/claws

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=597f1d7f55b064b65f7bbe6823a4cbf6698a9a3c
Author: Colin Leroy <colin@colino.net>
Date:   Sat Dec 28 19:16:37 2013 +0100

    Fix bug #2875, "SMTP session disconnects before recieving multi-line
    error message".

Note You need to log in before you can comment on or make changes to this bug.