Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a058028 authored by cketti's avatar cketti
Browse files

Use our standard read/connect timeouts in `SmtpTransport`

parent d93f690c
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -2,12 +2,6 @@
package com.fsck.k9.mail;

public abstract class Transport {

    protected static final int SOCKET_CONNECT_TIMEOUT = 10000;

    // RFC 1047
    protected static final int SOCKET_READ_TIMEOUT = 300000;

    public abstract void open() throws MessagingException;

    public abstract void sendMessage(Message message) throws MessagingException;
+2 −0
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@ import com.fsck.k9.mail.K9MailLib
import com.fsck.k9.mail.Message
import com.fsck.k9.mail.Message.RecipientType
import com.fsck.k9.mail.MessagingException
import com.fsck.k9.mail.NetworkTimeouts.SOCKET_CONNECT_TIMEOUT
import com.fsck.k9.mail.NetworkTimeouts.SOCKET_READ_TIMEOUT
import com.fsck.k9.mail.ServerSettings
import com.fsck.k9.mail.Transport
import com.fsck.k9.mail.filter.Base64