1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -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:
erlendorf 2013-12-15 19:16:10 +01:00 committed by cketti
parent 78428e287b
commit 453f10128c

View File

@ -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")) {