mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42: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);
|
Collections.reverse(unsyncedMessages);
|
||||||
|
|
||||||
FetchProfile fp = new FetchProfile();
|
FetchProfile fp = new FetchProfile();
|
||||||
|
if (remoteFolder.supportsFetchingFlags()) {
|
||||||
fp.add(FetchProfile.Item.FLAGS);
|
fp.add(FetchProfile.Item.FLAGS);
|
||||||
|
}
|
||||||
fp.add(FetchProfile.Item.ENVELOPE);
|
fp.add(FetchProfile.Item.ENVELOPE);
|
||||||
remoteFolder.fetch(unsyncedMessages.toArray(new Message[0]), fp,
|
remoteFolder.fetch(unsyncedMessages.toArray(new Message[0]), fp,
|
||||||
new MessageRetrievalListener() {
|
new MessageRetrievalListener() {
|
||||||
|
@ -96,6 +96,10 @@ public abstract class Folder {
|
|||||||
|
|
||||||
public abstract Flag[] getPermanentFlags() throws MessagingException;
|
public abstract Flag[] getPermanentFlags() throws MessagingException;
|
||||||
|
|
||||||
|
public boolean supportsFetchingFlags() {
|
||||||
|
return true;
|
||||||
|
}//isFlagSupported
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return getName();
|
return getName();
|
||||||
|
@ -811,6 +811,11 @@ public class Pop3Store extends Store {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean supportsFetchingFlags() {
|
||||||
|
return false;
|
||||||
|
}//isFlagSupported
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (o instanceof Pop3Folder) {
|
if (o instanceof Pop3Folder) {
|
||||||
@ -818,7 +823,8 @@ public class Pop3Store extends Store {
|
|||||||
}
|
}
|
||||||
return super.equals(o);
|
return super.equals(o);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
}//Pop3Folder
|
||||||
|
|
||||||
class Pop3Message extends MimeMessage {
|
class Pop3Message extends MimeMessage {
|
||||||
public Pop3Message(String uid, Pop3Folder folder) throws MessagingException {
|
public Pop3Message(String uid, Pop3Folder folder) throws MessagingException {
|
||||||
|
Loading…
Reference in New Issue
Block a user