1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 09:52:16 -05:00

. FIxed bug # 81: Notifications never show up wen using POP3.

This commit is contained in:
Bao-Long Nguyen-Trong 2008-12-14 06:18:24 +00:00
parent b0d68929a5
commit 97d10d0d25
3 changed files with 14 additions and 2 deletions

View File

@ -504,7 +504,9 @@ s * critical data as fast as possible, and then we'll fill in the de
Collections.reverse(unsyncedMessages);
FetchProfile fp = new FetchProfile();
fp.add(FetchProfile.Item.FLAGS);
if (remoteFolder.supportsFetchingFlags()) {
fp.add(FetchProfile.Item.FLAGS);
}
fp.add(FetchProfile.Item.ENVELOPE);
remoteFolder.fetch(unsyncedMessages.toArray(new Message[0]), fp,
new MessageRetrievalListener() {

View File

@ -96,6 +96,10 @@ public abstract class Folder {
public abstract Flag[] getPermanentFlags() throws MessagingException;
public boolean supportsFetchingFlags() {
return true;
}//isFlagSupported
@Override
public String toString() {
return getName();

View File

@ -811,6 +811,11 @@ public class Pop3Store extends Store {
}
}
@Override
public boolean supportsFetchingFlags() {
return false;
}//isFlagSupported
@Override
public boolean equals(Object o) {
if (o instanceof Pop3Folder) {
@ -818,7 +823,8 @@ public class Pop3Store extends Store {
}
return super.equals(o);
}
}
}//Pop3Folder
class Pop3Message extends MimeMessage {
public Pop3Message(String uid, Pop3Folder folder) throws MessagingException {