1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 17:18:50 -05:00

Fixed bug where intent is broadcasted for non new emails

This commit is contained in:
Bao-Long Nguyen-Trong 2009-11-09 03:52:59 +00:00
parent 072e991863
commit 5f96961cd6

View File

@ -1066,7 +1066,9 @@ public class MessagingController implements Runnable {
for (MessagingListener l : getListeners()) {
l.synchronizeMailboxAddOrUpdateMessage( account, folder, localMessage);
l.synchronizeMailboxNewMessage( account, folder, localMessage);
if (!localMessage.isSet(Flag.SEEN)) {
l.synchronizeMailboxNewMessage( account, folder, localMessage);
}
}
}
}
@ -1225,7 +1227,9 @@ public class MessagingController implements Runnable {
// Update the listener with what we've found
for (MessagingListener l : getListeners()) {
l.synchronizeMailboxAddOrUpdateMessage( account, folder, localMessage);
l.synchronizeMailboxNewMessage(account, folder, localMessage);
if (!localMessage.isSet(Flag.SEEN)) {
l.synchronizeMailboxNewMessage(account, folder, localMessage);
}
}
}
@ -1329,8 +1333,9 @@ public class MessagingController implements Runnable {
for (MessagingListener l : getListeners()) {
Message localMessage = localFolder.getMessage(message.getUid());
l.synchronizeMailboxAddOrUpdateMessage( account, folder, localMessage);
l.synchronizeMailboxNewMessage(account, folder, localMessage);
if (!localMessage.isSet(Flag.SEEN)) {
l.synchronizeMailboxNewMessage(account, folder, localMessage);
}
}
}//for large messsages
Log.i(Email.LOG_TAG, "SYNC: Done fetching large messages for folder " + folder);