1
0
Fork 0
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:
M66B 2024-06-13 09:33:09 +02:00
parent c6524263c5
commit 6bca60782b

View file

@ -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 ||