mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
Don't notify for new mail in a designated spam folder
This commit is contained in:
parent
734cbf856d
commit
5a5541b400
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user