mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 11:12:22 -05:00
IMAP: implement last message (simple *) fetch range
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1071 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
a4716cf936
commit
3f87184c7c
@ -1436,6 +1436,8 @@ public class ImapConnection extends AbstractConnection {
|
||||
endUid = startUid;
|
||||
startUid = swap;
|
||||
}
|
||||
} else if ("*".equals(currentRange)){
|
||||
startUid = endUid = messages.get(messages.size()-1).getImapUid();
|
||||
} else {
|
||||
startUid = endUid = convertToLong(currentRange);
|
||||
}
|
||||
@ -1517,6 +1519,8 @@ public class ImapConnection extends AbstractConnection {
|
||||
endUid = startUid;
|
||||
startUid = swap;
|
||||
}
|
||||
} else if ("*".equals(currentRange)){
|
||||
startUid = endUid = messages.size();
|
||||
} else {
|
||||
startUid = endUid = convertToLong(currentRange);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user