[imapfilter-devel] IMAPFilter 2.1
Lefteris Chatzimparmpas
lefcha at hellug.gr
Wed Nov 25 21:17:06 EET 2009
On Tue, Nov 24, 2009 at 11:13:32AM -0500, William Faulk wrote:
> If you get "12 EXISTS", that means that the folder now contains 12
> messages, which, by definition, are messages 1 through 12. Assuming
> that you know how many existed before and you follow IDLE's EXISTSes and
> EXPUNGEs (or, more precisely, the most recent EXIST and any subsequent
> EXPUNGEs), you know which messages arrived. You don't have the UID, but
> that's easily obtainable from the message number, if you need it.
I think in the IMAP RFC it is mentioned that it is not guaranteed that
UIDs of new messages will be a contiguous range, and this is something
not only attributed to simultaneous sessions. This might make the
functionality you suggest error prone in some cases.
If some searching is needed to make sure or get the UIDs of the new
messages (behind the user's back), then IDLE won't be much more useful
than what it is today.
> Consider my arguments above and do what you think sounds right.
I haven't investigated this very deep, so I will have a better look to
see what can be done about this. But I believe even as it is now IDLE
is quite useful to have anyway... Next version might not be that far
this time and I also have some other interesting ideas I'd like to work
on. Hopefully if paying job will allow it, I will have the time and
energy to work on them...
More information about the Imapfilter-devel
mailing list