-
Notifications
You must be signed in to change notification settings - Fork 498
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
152 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/main/java/com/zegoggles/smssync/mail/BackupStoreConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package com.zegoggles.smssync.mail; | ||
|
||
import com.fsck.k9.mail.store.StoreConfig; | ||
|
||
class BackupStoreConfig implements StoreConfig { | ||
private static final String INBOX = "INBOX"; | ||
private static final String UUID = "SMSBACKUP"; | ||
private final String storeUri; | ||
|
||
BackupStoreConfig(String storeUri) { | ||
this.storeUri = storeUri; | ||
} | ||
|
||
@Override public String getUuid() { | ||
return UUID; | ||
} | ||
@Override public String getStoreUri() { | ||
return storeUri; | ||
} | ||
@Override public String getTransportUri() { return null; } | ||
@Override public boolean subscribedFoldersOnly() { | ||
return false; | ||
} | ||
@Override public boolean useCompression(int i) { | ||
return false; | ||
} | ||
@Override public String getInboxFolderName() { | ||
return INBOX; | ||
} | ||
@Override public String getOutboxFolderName() { | ||
return null; | ||
} | ||
@Override public String getDraftsFolderName() { | ||
return null; | ||
} | ||
@Override public void setDraftsFolderName(String s) { } | ||
@Override public void setTrashFolderName(String s) { } | ||
@Override public void setSpamFolderName(String s) { } | ||
@Override public void setSentFolderName(String s) { } | ||
@Override public void setAutoExpandFolderName(String s) { } | ||
@Override public void setInboxFolderName(String s) { } | ||
@Override public int getMaximumAutoDownloadMessageSize() { return 0; } | ||
@Override public boolean allowRemoteSearch() { return false; } | ||
@Override public boolean isRemoteSearchFullText() { | ||
return false; | ||
} | ||
@Override public boolean isPushPollOnConnect() { | ||
return false; | ||
} | ||
@Override public int getDisplayCount() { | ||
return 0; | ||
} | ||
@Override public int getIdleRefreshMinutes() { | ||
return 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ public void shouldTestForValidFolder() throws Exception { | |
@Test public void testAccountHasStoreUri() throws Exception { | ||
String uri = "imap://xoauth:[email protected]"; | ||
BackupImapStore store = new BackupImapStore(Robolectric.application, uri); | ||
assertThat(store.getAccount().getStoreUri()).isEqualTo(uri); | ||
assertThat(store.getStoreUri()).isEqualTo(uri); | ||
} | ||
|
||
@Test public void shouldHaveToStringWithObfuscatedStoreURI() throws Exception { | ||
|
Oops, something went wrong.