From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.216.184.82 with SMTP id r60csp4361wem; Fri, 24 Feb 2012 22:58:58 -0800 (PST) Received: by 10.236.37.132 with SMTP id y4mr7799533yha.10.1330153137166; Fri, 24 Feb 2012 22:58:57 -0800 (PST) Return-Path: Received: from rubyforge.org (50-56-192-79.static.cloud-ips.com. [50.56.192.79]) by mx.google.com with ESMTP id b4si3677697ank.156.2012.02.24.22.58.56; Fri, 24 Feb 2012 22:58:57 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) client-ip=50.56.192.79; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 83C16262FF0; Sat, 25 Feb 2012 06:58:56 +0000 (UTC) Received: from masanjin.net (masanjin.net [209.20.72.13]) by rubyforge.org (Postfix) with ESMTP id 7B48526276D for ; Sat, 25 Feb 2012 06:35:34 +0000 (UTC) Received: from w by masanjin.net with local (Exim 4.71) (envelope-from ) id 1S1BET-0006Kk-Ht for sup-devel@rubyforge.org; Sat, 25 Feb 2012 06:35:49 +0000 From: William Morgan To: sup-devel@rubyforge.org In-reply-to: <1329996040-sup-2419@stapelberg.de> References: <1326062741-sup-6469@stapelberg.de> <1329113568-sup-8177@typhon> <1329946381-sup-2255@stapelberg.de> <1329977859-turnsole-79917@terminus-est> <1329996040-sup-2419@stapelberg.de> Date: Fri, 24 Feb 2012 22:35:32 -0800 Message-Id: <1330150790-turnsole-3005@terminus-est> User-Agent: turnsole, a heliotrope client v.git Subject: Re: [sup-devel] [Heliotrope/Turnsole] How to use IMAP? X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org 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 _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel