mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
If we auto-config a Yahoo! account, set the spam folder to be "Bulk Mail."
This commit is contained in:
parent
1012ad56dd
commit
44cc1930d5
@ -225,7 +225,12 @@ public class AccountSetupBasics extends K9Activity
|
||||
mAccount.setDraftsFolderName(getString(R.string.special_mailbox_name_drafts));
|
||||
mAccount.setTrashFolderName(getString(R.string.special_mailbox_name_trash));
|
||||
mAccount.setArchiveFolderName(getString(R.string.special_mailbox_name_archive));
|
||||
mAccount.setSpamFolderName(getString(R.string.special_mailbox_name_spam));
|
||||
// Yahoo! has a special folder for Spam, called "Bulk Mail".
|
||||
if (incomingUriTemplate.getHost().toLowerCase().endsWith("yahoo.com")) {
|
||||
mAccount.setSpamFolderName("Bulk Mail");
|
||||
} else {
|
||||
mAccount.setSpamFolderName(getString(R.string.special_mailbox_name_spam));
|
||||
}
|
||||
mAccount.setSentFolderName(getString(R.string.special_mailbox_name_sent));
|
||||
AccountSetupCheckSettings.actionCheckSettings(this, mAccount, true, true);
|
||||
} catch (UnsupportedEncodingException enc) {
|
||||
|
Loading…
Reference in New Issue
Block a user