Re: [notmuch] [PATCH] notmuch-new: Respect maildir flags when importing a new message
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 8 Apr 2010 12:57:31 +0000 (14:57 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:31 +0000 (09:36 -0800)
86/8f8802977d6e15a14b9343987a8f13d0f89db4 [new file with mode: 0644]

diff --git a/86/8f8802977d6e15a14b9343987a8f13d0f89db4 b/86/8f8802977d6e15a14b9343987a8f13d0f89db4
new file mode 100644 (file)
index 0000000..905d338
--- /dev/null
@@ -0,0 +1,101 @@
+Return-Path: <sojkam1@fel.cvut.cz>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 8DCF04196F2\r
+       for <notmuch@notmuchmail.org>; Thu,  8 Apr 2010 05:57:37 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.5\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.5 tagged_above=-999 required=5\r
+       tests=[BAYES_05=-0.5] autolearn=ham\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 5WUrWn5lkg7M for <notmuch@notmuchmail.org>;\r
+       Thu,  8 Apr 2010 05:57:36 -0700 (PDT)\r
+Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
+       by olra.theworths.org (Postfix) with ESMTP id 45AA9431FC1\r
+       for <notmuch@notmuchmail.org>; Thu,  8 Apr 2010 05:57:36 -0700 (PDT)\r
+Received: from localhost (unknown [192.168.200.4])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id 9A6DB19F33D5;\r
+       Thu,  8 Apr 2010 14:57:35 +0200 (CEST)\r
+X-Virus-Scanned: IMAP AMAVIS\r
+Received: from max.feld.cvut.cz ([192.168.200.1])\r
+       by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
+       port 10044)\r
+       with ESMTP id CLJbgPehEL83; Thu,  8 Apr 2010 14:57:32 +0200 (CEST)\r
+Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id 0296219F33D4;\r
+       Thu,  8 Apr 2010 14:57:32 +0200 (CEST)\r
+Received: from steelpick.2x.cz (k335-30.felk.cvut.cz [147.32.86.30])\r
+       (Authenticated sender: sojkam1)\r
+       by imap.feld.cvut.cz (Postfix) with ESMTPSA id D216015C062;\r
+       Thu,  8 Apr 2010 14:57:31 +0200 (CEST)\r
+Received: from wsh by steelpick.2x.cz with local (Exim 4.71)\r
+       (envelope-from <sojkam1@fel.cvut.cz>)\r
+       id 1NzrIZ-00056p-C3; Thu, 08 Apr 2010 14:57:31 +0200\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: Carl Worth <cworth@cworth.org>, Sebastian Spaeth <Sebastian@SSpaeth.de>,\r
+       notmuch@notmuchmail.org\r
+Subject: Re: [notmuch] [PATCH] notmuch-new: Respect maildir flags when\r
+       importing a new message\r
+In-Reply-To: <878w8zq7yl.fsf@yoom.home.cworth.org>\r
+References: <20100216022128.GH22402@flamingspork.com>\r
+       <1267450136-31749-1-git-send-email-Sebastian@SSpaeth.de>\r
+       <878w8zq7yl.fsf@yoom.home.cworth.org>\r
+Date: Thu, 08 Apr 2010 14:57:31 +0200\r
+Message-ID: <87aate6r0k.fsf@steelpick.2x.cz>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 08 Apr 2010 12:57:37 -0000\r
+\r
+On Wed, 07 Apr 2010, Carl Worth wrote:\r
+> On Mon,  1 Mar 2010 14:28:56 +0100, Sebastian Spaeth <Sebastian@SSpaeth.de> wrote:\r
+> > When importing a new mail do check for maildir tags and assign\r
+> > corresponding notmuch tags.\r
+> \r
+> I think this is a useful thing to support, as obviously new users have\r
+> *some* state that's interesting to import (which messages have been\r
+> "seen" for example), and simply importing their entire email archive\r
+> with both the "inbox" and "unread" tags is not helpful. So I'd like to\r
+> figure out how to support this.\r
+\r
+I'm solving this in my mailstore abstraction patches. I'll send the next\r
+version in a while.\r
+\r
+> > Do note that this will only add tags when importing a really new\r
+> > message, and will not do anything when detecting a file rename\r
+> > (although someone should really make it honor file renames as\r
+> > well). Deleteing an existing message in another IMAP client will\r
+> > therefore not trigger tagging (as it counts as a file rename).\r
+> \r
+> But I think we really need to fix that if we're going to claim that\r
+> notmuch "supports maildir flags" in any sense.\r
+> \r
+> It's a fairly tricky issue though since we can have multiple files that\r
+> have the same message ID, but then have different maildir flags. And\r
+> it's the matter of arbitrary ordering which one of these files appears\r
+> as "new" and which one appears as a "rename".\r
+\r
+Yes, that's a problem. It is not currently solved in my pacthes, but I\r
+have one solution in my mind. Let's discuss this with my patch.\r
+\r
+> It's not obvious to me what we can do here unless we make some\r
+> assumptions, (such as "mails always start without the seen flag, and\r
+> once it appears it can't be removed" or so). But I'd love some input\r
+> From someone who's thought harder about this than I have.\r
+\r
+-Michal\r