Search in sources :

Example 26 with PendingCommand

use of com.fsck.k9.controller.MessagingControllerCommands.PendingCommand in project k-9 by k9mail.

the class MessagingController method markAllMessagesRead.

public void markAllMessagesRead(final Account account, final String folder) {
    Timber.i("Marking all messages in %s:%s as read", account.getDescription(), folder);
    PendingCommand command = PendingMarkAllAsRead.create(folder);
    queuePendingCommand(account, command);
    processPendingCommands(account);
}
Also used : PendingCommand(com.fsck.k9.controller.MessagingControllerCommands.PendingCommand)

Example 27 with PendingCommand

use of com.fsck.k9.controller.MessagingControllerCommands.PendingCommand in project k-9 by k9mail.

the class MessagingController method queueMoveOrCopy.

private void queueMoveOrCopy(Account account, String srcFolder, String destFolder, boolean isCopy, List<String> uids) {
    if (account.getErrorFolderName().equals(srcFolder)) {
        return;
    }
    PendingCommand command = PendingMoveOrCopy.create(srcFolder, destFolder, isCopy, uids);
    queuePendingCommand(account, command);
}
Also used : PendingCommand(com.fsck.k9.controller.MessagingControllerCommands.PendingCommand)

Aggregations

PendingCommand (com.fsck.k9.controller.MessagingControllerCommands.PendingCommand)14 Test (org.junit.Test)14 OldPendingCommand (com.fsck.k9.mailstore.migrations.MigrationTo60.OldPendingCommand)10 PendingMoveOrCopy (com.fsck.k9.controller.MessagingControllerCommands.PendingMoveOrCopy)5 PendingSetFlag (com.fsck.k9.controller.MessagingControllerCommands.PendingSetFlag)4 MessagingException (com.fsck.k9.mail.MessagingException)4 LocalStore (com.fsck.k9.mailstore.LocalStore)4 LocalFolder (com.fsck.k9.mailstore.LocalFolder)3 ContentValues (android.content.ContentValues)2 PendingAppend (com.fsck.k9.controller.MessagingControllerCommands.PendingAppend)2 PendingEmptyTrash (com.fsck.k9.controller.MessagingControllerCommands.PendingEmptyTrash)2 Flag (com.fsck.k9.mail.Flag)2 Message (com.fsck.k9.mail.Message)2 MimeMessage (com.fsck.k9.mail.internet.MimeMessage)2 LocalMessage (com.fsck.k9.mailstore.LocalMessage)2 UnavailableStorageException (com.fsck.k9.mailstore.UnavailableStorageException)2 IOException (java.io.IOException)2 ArrayList (java.util.ArrayList)2 SuppressLint (android.annotation.SuppressLint)1 SQLiteDatabase (android.database.sqlite.SQLiteDatabase)1