mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Make sure MODSEQ is up to date
This commit is contained in:
parent
c6524263c5
commit
6bca60782b
1 changed files with 7 additions and 1 deletions
|
@ -3834,7 +3834,13 @@ class Core {
|
|||
if (use_modseq)
|
||||
try {
|
||||
if (MessageHelper.hasCapability(ifolder, "CONDSTORE")) {
|
||||
modseq = ifolder.getHighestModSeq();
|
||||
Status status = (Status) ifolder.doCommand(new IMAPFolder.ProtocolCommand() {
|
||||
@Override
|
||||
public Object doCommand(IMAPProtocol protocol) throws ProtocolException {
|
||||
return protocol.status(ifolder.getFullName(), new String[]{"HIGHESTMODSEQ"});
|
||||
}
|
||||
});
|
||||
modseq = status.highestmodseq;
|
||||
if (modseq < 0)
|
||||
modseq = null;
|
||||
modified = (force || initialize != 0 ||
|
||||
|
|
Loading…
Reference in a new issue