1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-15 14:05:05 -05:00

Fixes 4517: Junk special folder not autoconfigured (rfc6154 implementation was incomplete)

This commit is contained in:
Bernhard Redl 2012-09-10 01:16:42 +02:00 committed by ashley willis
parent ee0e558f4d
commit 7c9b42091a

View File

@ -683,7 +683,8 @@ public class ImapStore extends Store {
} else if (attribute.equals("\\Sent")) { } else if (attribute.equals("\\Sent")) {
mAccount.setSentFolderName(decodedFolderName); mAccount.setSentFolderName(decodedFolderName);
if (K9.DEBUG) Log.d(K9.LOG_TAG, "Folder auto-configuration detected sent folder: " + decodedFolderName); if (K9.DEBUG) Log.d(K9.LOG_TAG, "Folder auto-configuration detected sent folder: " + decodedFolderName);
} else if (attribute.equals("\\Spam")) { } else if (attribute.equals("\\Spam") || attribute.equals("\\Junk")) {
//rfc6154 just mentions \Junk
mAccount.setSpamFolderName(decodedFolderName); mAccount.setSpamFolderName(decodedFolderName);
if (K9.DEBUG) Log.d(K9.LOG_TAG, "Folder auto-configuration detected spam folder: " + decodedFolderName); if (K9.DEBUG) Log.d(K9.LOG_TAG, "Folder auto-configuration detected spam folder: " + decodedFolderName);
} else if (attribute.equals("\\Trash")) { } else if (attribute.equals("\\Trash")) {