(Relay) Handle unexpected replies and disconnections adequately
authorMegaBrutal <code+git@megabrutal.com>
Wed, 11 Feb 2015 23:04:50 +0000 (00:04 +0100)
committerMegaBrutal <code+git@megabrutal.com>
Wed, 11 Feb 2015 23:04:50 +0000 (00:04 +0100)
commit7e2904763170597795d8c117d938cb6e4b86b3b7
treee532c87f685a52cab564817d6f3531a97698e314
parent6f8e6026b5d35a3fa41a124032caed6621a9f86e
(Relay) Handle unexpected replies and disconnections adequately

- Previously it was possible that MgSMTP erroneously administered
an e-mail as delivered, when the server accepted the recipient in
the RCPT stage, but disconnected before or in the DATA stage.
This patch mainly addresses this issue, by making sure that the
transaction is completed, before administering a final status.

- MgSMTP is now more tolerant with non-compliant replies,
e.g., accepts 250 for connection opening, not only 220.

- Increased relay send buffer size from 32 lines to 64.

modified:   Common.pas
modified:   MgSMTP.pas
modified:   Relay.pas
modified:   Spool.pas
Common.pas
MgSMTP.pas
Relay.pas
Spool.pas