1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

Don't notify for new mail in a designated spam folder

This commit is contained in:
Jesse Vincent 2011-01-16 21:33:54 +00:00
parent 734cbf856d
commit 5a5541b400

View File

@ -4643,12 +4643,13 @@ public class MessagingController implements Runnable
Folder folder = message.getFolder(); Folder folder = message.getFolder();
if (folder != null) if (folder != null)
{ {
// No notification for new messages in Trash, Drafts, or Sent folder. // No notification for new messages in Trash, Drafts, Spam or Sent folder.
// But do notify if it's the INBOX (see issue 1817). // But do notify if it's the INBOX (see issue 1817).
String folderName = folder.getName(); String folderName = folder.getName();
if (!K9.INBOX.equals(folderName) && if (!K9.INBOX.equals(folderName) &&
(account.getTrashFolderName().equals(folderName) (account.getTrashFolderName().equals(folderName)
|| account.getDraftsFolderName().equals(folderName) || account.getDraftsFolderName().equals(folderName)
|| account.getSpamFolderName().equals(folderName)
|| account.getSentFolderName().equals(folderName))) || account.getSentFolderName().equals(folderName)))
{ {
return false; return false;