mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Make IMAP autoconfig recognize "Draft" as drafts folder
Yahoo names it "Draft" instead of the more common "Drafts".
This commit is contained in:
parent
78428e287b
commit
453f10128c
@ -685,7 +685,7 @@ public class ImapStore extends Store {
|
||||
ImapList attributes = response.getList(1);
|
||||
for (int i = 0, count = attributes.size(); i < count; i++) {
|
||||
String attribute = attributes.getString(i);
|
||||
if (attribute.equals("\\Drafts")) {
|
||||
if (attribute.equals("\\Drafts") || (attribute.equals("\\Draft") && !mAccount.hasDraftsFolder())) {
|
||||
mAccount.setDraftsFolderName(decodedFolderName);
|
||||
if (K9.DEBUG) Log.d(K9.LOG_TAG, "Folder auto-configuration detected draft folder: " + decodedFolderName);
|
||||
} else if (attribute.equals("\\Sent")) {
|
||||
|
Loading…
Reference in New Issue
Block a user