Don't upload sent message if Sent folder is local-only
@@ -1601,11 +1601,13 @@ public class MessagingController {
Timber.i("Moved sent message to folder '%s' (%d)", sentFolderServerId, sentFolderId);
+ if (!sentFolder.isLocalOnly()) {
PendingCommand command = PendingAppend.create(sentFolderId, message.getUid());
queuePendingCommand(account, command);
processPendingCommands(account);
}
}
+ }
private void handleSendFailure(Account account, LocalFolder localFolder, Message message, Exception exception)
throws MessagingException {
