]> diplodocus.org Git - nmh/commit
Send a QUIT instead of RSET at session end when doing 'whom'.
authorKen Hornstein <kenh@pobox.com>
Fri, 8 Sep 2017 17:46:08 +0000 (13:46 -0400)
committerKen Hornstein <kenh@pobox.com>
Fri, 8 Sep 2017 17:46:08 +0000 (13:46 -0400)
commit6396778780e014c789e3d18a0880525ee1cde4f6
tree7d6ea4556a225aadde2537e2f85060d24207e9ea
parent9a4413187b1cf9562bceef8cfe442278ed67afd9
Send a QUIT instead of RSET at session end when doing 'whom'.

When running 'whom -check' (which really invokes post(8)), at the
end of the SMTP session we would send a RSET instead of a QUIT.  This was
technically a RFC violation (RFC 5321 says a QUIT has to be the last
thing you send), and this would cause some SMTP servers to complain.
So make sure if we're being invoked by whom to send a QUIT at the end
of the session.  Reported by Ralph Corderoy.
uip/post.c