From 453f10128c0500e7165f22e806fc1ce4e3623dd5 Mon Sep 17 00:00:00 2001 From: erlendorf Date: Sun, 15 Dec 2013 19:16:10 +0100 Subject: [PATCH] Make IMAP autoconfig recognize "Draft" as drafts folder Yahoo names it "Draft" instead of the more common "Drafts". --- src/com/fsck/k9/mail/store/ImapStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/mail/store/ImapStore.java b/src/com/fsck/k9/mail/store/ImapStore.java index eda66afb9..b2d033eac 100644 --- a/src/com/fsck/k9/mail/store/ImapStore.java +++ b/src/com/fsck/k9/mail/store/ImapStore.java @@ -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")) {