mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 03:32:16 -05:00
. FIxed bug # 81: Notifications never show up wen using POP3.
This commit is contained in:
parent
b0d68929a5
commit
97d10d0d25
@ -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() {
|
||||
|
@ -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();
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user