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);
}
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);
}
Aggregations