Improve SMTP client.
* include/mailutils/smtp.h (mu_smtp_dot): New proto. * libproto/mailer/smtp_dot.c: New file. * libproto/mailer/Makefile.am (libmu_mailer_la_SOURCES): Add smtp_dot.c. * libproto/mailer/smtp.c (smtp_send_message): Send RSET after an unexpected SMTP reply. Call mu_smtp_dot after successful sending. * libproto/mailer/smtp_data.c (_mu_smtp_data_end): Set state to MU_SMTP_DOT. * libproto/mailer/smtp_rset.c (mu_smtp_rset): Improve state selection algorithm. * libproto/mailer/smtp_send.c (mu_smtp_send_stream): Don't reset state: it is done by _mu_smtp_data_end. * testsuite/smtpsend.c (main): Call mu_smtp_dot after sending message.
Showing
8 changed files
with
102 additions
and
17 deletions
libproto/mailer/smtp_dot.c
0 → 100644
-
Please register or sign in to post a comment