mirror of
https://github.com/moparisthebest/k-9
synced 2025-03-03 01:51:49 -05:00
For a while, it was possible for users to conifgure their outbox and
drafts folders to be the same folder. This could result in drafts being sent over and over. This change uses the K-9 Identity header as a shibboleth for drafts, as it's not actually set when a message is sent.
This commit is contained in:
parent
659a5d36b2
commit
724b6eaaa5
@ -3025,6 +3025,16 @@ public class MessagingController implements Runnable {
|
||||
|
||||
localFolder.fetch(new Message[] { message }, fp, null);
|
||||
try {
|
||||
|
||||
|
||||
if (message.getHeader(K9.IDENTITY_HEADER) != null) {
|
||||
Log.v(K9.LOG_TAG, "The user has set the Outbox and Drafts folder to the same thing. " +
|
||||
"This message appears to be a draft, so K-9 will not send it");
|
||||
continue;
|
||||
|
||||
}
|
||||
|
||||
|
||||
message.setFlag(Flag.X_SEND_IN_PROGRESS, true);
|
||||
if (K9.DEBUG)
|
||||
Log.i(K9.LOG_TAG, "Sending message with UID " + message.getUid());
|
||||
|
Loading…
x
Reference in New Issue
Block a user