|
|
@ -44,6 +44,7 @@ import androidx.preference.PreferenceManager;
|
|
|
|
import com.sun.mail.smtp.SMTPSendFailedException;
|
|
|
|
import com.sun.mail.smtp.SMTPSendFailedException;
|
|
|
|
import com.sun.mail.util.TraceOutputStream;
|
|
|
|
import com.sun.mail.util.TraceOutputStream;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.ByteArrayOutputStream;
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.FileNotFoundException;
|
|
|
|
import java.io.FileNotFoundException;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.IOException;
|
|
|
@ -527,6 +528,7 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
|
|
|
|
|
|
|
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
|
|
|
boolean reply_move = prefs.getBoolean("reply_move", false);
|
|
|
|
boolean reply_move = prefs.getBoolean("reply_move", false);
|
|
|
|
|
|
|
|
boolean protocol = prefs.getBoolean("protocol", false);
|
|
|
|
boolean debug = (prefs.getBoolean("debug", false) || BuildConfig.DEBUG);
|
|
|
|
boolean debug = (prefs.getBoolean("debug", false) || BuildConfig.DEBUG);
|
|
|
|
|
|
|
|
|
|
|
|
if (message.identity == null)
|
|
|
|
if (message.identity == null)
|
|
|
@ -705,6 +707,13 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
|
|
|
recipients.add(a);
|
|
|
|
recipients.add(a);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (protocol && BuildConfig.DEBUG) {
|
|
|
|
|
|
|
|
ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
|
|
|
|
|
|
|
imessage.writeTo(bos);
|
|
|
|
|
|
|
|
for (String line : bos.toString().split("\n"))
|
|
|
|
|
|
|
|
EntityLog.log(this, line);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
String via = "via " + ident.host + "/" + ident.user +
|
|
|
|
String via = "via " + ident.host + "/" + ident.user +
|
|
|
|
" recipients=" + TextUtils.join(", ", recipients);
|
|
|
|
" recipients=" + TextUtils.join(", ", recipients);
|
|
|
|
|
|
|
|
|
|
|
|