Search in sources :

Example 1 with PendingExpunge

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

the class MigrationTo60Test method migrateExpunge.

@Test
public void migrateExpunge() {
    OldPendingCommand command = queueExpunge(SOURCE_FOLDER);
    PendingExpunge pendingCommand = (PendingExpunge) MigrationTo60.migratePendingCommand(command);
    assertEquals(SOURCE_FOLDER, pendingCommand.folder);
}
Also used : PendingExpunge(com.fsck.k9.controller.MessagingControllerCommands.PendingExpunge) OldPendingCommand(com.fsck.k9.mailstore.migrations.MigrationTo60.OldPendingCommand) Test(org.junit.Test)

Example 2 with PendingExpunge

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

the class MessagingController method processPendingExpunge.

void processPendingExpunge(PendingExpunge command, Account account) throws MessagingException {
    Backend backend = getBackend(account);
    String folderServerId = getFolderServerId(account, command.folderId);
    backend.expunge(folderServerId);
}
Also used : Backend(com.fsck.k9.backend.api.Backend)

Aggregations

Backend (com.fsck.k9.backend.api.Backend)1 PendingExpunge (com.fsck.k9.controller.MessagingControllerCommands.PendingExpunge)1 OldPendingCommand (com.fsck.k9.mailstore.migrations.MigrationTo60.OldPendingCommand)1 Test (org.junit.Test)1