|
|
@ -1325,6 +1325,7 @@ public class SMTPTransport extends Transport {
|
|
|
|
traceOutput.setReporter(total.value, new TraceOutputStream.IReport() {
|
|
|
|
traceOutput.setReporter(total.value, new TraceOutputStream.IReport() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void report(int pos, int total) {
|
|
|
|
public void report(int pos, int total) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
if (reporter == null)
|
|
|
|
if (reporter == null)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
@ -1339,6 +1340,9 @@ public class SMTPTransport extends Transport {
|
|
|
|
sent = total;
|
|
|
|
sent = total;
|
|
|
|
|
|
|
|
|
|
|
|
reporter.report(sent, total);
|
|
|
|
reporter.report(sent, total);
|
|
|
|
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
|
|
|
|
eu.faircode.email.Log.e(ex);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
if (chunkSize > 0 && supportsExtension("CHUNKING")) {
|
|
|
|
if (chunkSize > 0 && supportsExtension("CHUNKING")) {
|
|
|
|