Hello,
This is a pretty simple question. I am considering writing some software
to cache imap message/header data. In thinking about this, I have been
going through the Perl Mail::Cclient docs for ways I can determine easily
if there are changes: new messages, deleted messages, messages with changed
flags. I am using mbx formatted folders.
New messages: compare current vs saved "uidnext" can be examined to see if
there have been new messages.
Deleted messages: I am not sure how to detect this short of getting a list
of all uids and comparing with my local list and removing missing ones.
Messages with changed flags: I am not sure how to do this without fetching
the flags for all messages and updating my local cache.
Are there better ways of doing these things with imap/cclient -- the
overall goal is to ease the server workload as much as possible through
caching. If we have to re-scan headers every time, then caching locally is
not much better than just grabbing the headers directly each time.
Any suggestions are appreciated.
Best,
-Erik Kangas
LuxSci.com
_______________________________________________
Imap-uw mailing list
Imap-uw@u.washington.edu
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw