Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 453f1012 authored by erlendorf's avatar erlendorf Committed by cketti
Browse files

Make IMAP autoconfig recognize "Draft" as drafts folder

Yahoo names it "Draft" instead of the more common "Drafts".
parent 78428e28
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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")) {