mirror of
https://github.com/moparisthebest/k-9
synced 2024-08-13 17:03:48 -04:00
When disconnecting from an SMTP server, send a quit command to be a
better internet citizen. Fixes Issue 1044.
This commit is contained in:
parent
a145d3c616
commit
2c406a58b0
@ -330,6 +330,14 @@ public class SmtpTransport extends Transport
|
|||||||
|
|
||||||
public void close()
|
public void close()
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
executeSimpleCommand("QUIT");
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
mIn.close();
|
mIn.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user