[sup-devel] [Heliotrope/Turnsole] How to use IMAP?
wmorgan-sup at masanjin.net
Sat Feb 25 06:35:32 UTC 2012
Excerpts from Michael Stapelberg's message of 2012-02-23 03:24:22 -0800:
> Well, I guess you are correct. So, when somebody sends me a spam email
> or a malicious email with a faked date, what happens? I think that the
> code will figure out it needs to re-add a lot of messages. Also, my
> index will need to be reordered, right?
You won't need to reorder. Importing is all incremental, at least if you
use --state-file: it will keep track of the last message imported, and
successive imports will only pick up new messages.
But you are making me realize that the current maildir implementation is
not right. I think the way to handle Maildir is to look only at the
ctime of the files and not the date headers. That will make incremental
importing possible (just save the filename of the last imported file,
and look for all files newer than that). It will speed things up
And if you're in the funny situation where the ctime is not correlated
with the Date: headers in your files, which is perfectly possibly by the
Maildir spec, then you will have to reorder after that initial import.
But in reality that's a possibility with the other source types
too---it's just more likely with Maildir.
William <wmorgan at masanjin.net>
More information about the Sup-devel