Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: William Morgan <wmorgan-sup@masanjin.net>
To: sup-devel@rubyforge.org
Subject: Re: [sup-devel] [Heliotrope/Turnsole] How to use IMAP?
Date: Fri, 24 Feb 2012 22:35:32 -0800	[thread overview]
Message-ID: <1330150790-turnsole-3005@terminus-est> (raw)
In-Reply-To: <1329996040-sup-2419@stapelberg.de>

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
anyways.

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@masanjin.net>
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


  reply	other threads:[~2012-02-25  6:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-08 22:48 Michael Stapelberg
2012-01-10  0:40 ` William Morgan
2012-02-06 20:45   ` Michael Stapelberg
2012-02-06 23:08     ` Matthieu Rakotojaona
2012-02-06 23:46       ` Michael Stapelberg
2012-02-07 12:27         ` Matthieu Rakotojaona
2012-02-07 19:11           ` Michael Stapelberg
2012-02-07 21:54             ` Matthieu Rakotojaona
2012-02-13  6:16 ` William Morgan
2012-02-22 21:39   ` Michael Stapelberg
2012-02-23  6:25     ` William Morgan
2012-02-23 11:24       ` Michael Stapelberg
2012-02-25  6:35         ` William Morgan [this message]
2012-02-27  9:16           ` Michael Stapelberg
2012-02-29  1:11             ` William Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1330150790-turnsole-3005@terminus-est \
    --to=wmorgan-sup@masanjin.net \
    --cc=sup-devel@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox