mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 00:23:09 +02:00
Report progress after buffer
There is still a socket buffer
This commit is contained in:
@@ -42,6 +42,7 @@ import com.sun.mail.pop3.POP3Store;
|
||||
import com.sun.mail.smtp.SMTPTransport;
|
||||
import com.sun.mail.util.MailConnectException;
|
||||
import com.sun.mail.util.SocketConnectException;
|
||||
import com.sun.mail.util.TraceOutputStream;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
@@ -300,8 +301,8 @@ public class EmailService implements AutoCloseable {
|
||||
properties.put("mail." + protocol + ".dsn.notify", what);
|
||||
}
|
||||
|
||||
void setProgress(SMTPTransport.IProgress listener) {
|
||||
properties.put("mail." + protocol + ".progress", listener);
|
||||
void setReporter(TraceOutputStream.IReport reporter) {
|
||||
properties.put("mail." + protocol + ".reporter", reporter);
|
||||
}
|
||||
|
||||
void setListener(StoreListener listener) {
|
||||
|
||||
Reference in New Issue
Block a user