Re: [PATCH] Have --format=mbox insert Status:
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 7 Feb 2011 09:04:41 +0000 (10:04 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:53 +0000 (09:37 -0800)
d3/93e37ecd26cac0b14bbe45adc1494155e6a7ce [new file with mode: 0644]

diff --git a/d3/93e37ecd26cac0b14bbe45adc1494155e6a7ce b/d3/93e37ecd26cac0b14bbe45adc1494155e6a7ce
new file mode 100644 (file)
index 0000000..7073857
--- /dev/null
@@ -0,0 +1,106 @@
+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 1099C431FD0\r
+       for <notmuch@notmuchmail.org>; Mon,  7 Feb 2011 01:04:47 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\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 cniEXMG0wN64 for <notmuch@notmuchmail.org>;\r
+       Mon,  7 Feb 2011 01:04:44 -0800 (PST)\r
+Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
+       by olra.theworths.org (Postfix) with ESMTP id C178B431FB6\r
+       for <notmuch@notmuchmail.org>; Mon,  7 Feb 2011 01:04:44 -0800 (PST)\r
+Received: from localhost (unknown [192.168.200.4])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id BA4323CFE85;\r
+       Mon,  7 Feb 2011 10:04:42 +0100 (CET)\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 G3WMyoQZvmby; Mon,  7 Feb 2011 10:04:41 +0100 (CET)\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 869E73CFE7C;\r
+       Mon,  7 Feb 2011 10:04:41 +0100 (CET)\r
+Received: from steelpick.2x.cz (note-sojka.felk.cvut.cz [147.32.86.30])\r
+       (Authenticated sender: sojkam1)\r
+       by imap.feld.cvut.cz (Postfix) with ESMTPSA id 7B5BCFA003;\r
+       Mon,  7 Feb 2011 10:04:41 +0100 (CET)\r
+Received: from wsh by steelpick.2x.cz with local (Exim 4.72)\r
+       (envelope-from <sojkam1@fel.cvut.cz>)\r
+       id 1PmN1V-0007AI-Ap; Mon, 07 Feb 2011 10:04:41 +0100\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: Peter John Hartman <peterjohnhartman@gmail.com>\r
+Subject: Re: [PATCH] Have --format=mbox insert Status:\r
+In-Reply-To: <20110206202614.GA3743@triltoucheee.wireless.utoronto.ca>\r
+References: <20110202234719.GA28241@triltoucheee.wireless.utoronto.ca>\r
+       <87wrleoz95.fsf@wsheee.2x.cz>\r
+       <20110206202614.GA3743@triltoucheee.wireless.utoronto.ca>\r
+User-Agent: Notmuch/0.5-103-g1253785 (http://notmuchmail.org) Emacs/23.2.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Mon, 07 Feb 2011 10:04:41 +0100\r
+Message-ID: <87sjw0xljq.fsf@steelpick.2x.cz>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Cc: notmuch@notmuchmail.org\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: Mon, 07 Feb 2011 09:04:47 -0000\r
+\r
+On Sun, 06 Feb 2011, Peter John Hartman wrote:\r
+> > Hi Peter,\r
+> > \r
+> > would this output be compatible with all mbox consumers or only with\r
+> > those who expect the Status: line? If the latter, we would probably want\r
+> > a command line option to enable this.\r
+> \r
+> Hi,\r
+> \r
+> As far as I've been able to tell everyone respects RO in mbox, so I don't\r
+> see this as a problem.  In any case, having the Status: line there won't \r
+> cause problems if an MUA doesn't recognize it.  That said, it would be nice\r
+> to think of a place to allow the user to easily "map" notmuch tags to\r
+> Status: or X-Status: rules, perhaps in the notmuch config file as follows:\r
+> \r
+> [mbox]\r
+> synchronize_flags=true\r
+\r
+I would call this differently - perhaps 'export_flags'. In maildir\r
+section of config file synchronize_flags has the meaning of\r
+bi-directional synchronization and this is only uni-directional.\r
+\r
+> xstatus_A=replied\r
+> xstatus_F=flagged\r
+> xstatus_T=draft\r
+> #xstatus_D=deleted\r
+> status_R=-unread\r
+> status_O=unread\r
+\r
+Is it necessary for this to be configurable? Given the list bellow, it\r
+seems it is already defined by the "standard", so users would rarely\r
+want different mapping.\r
+\r
+\r
+> Reference: http://wiki.dovecot.org/MailboxFormat/mbox:\r
+>   Status: R (\Seen) and O (non-\Recent) flags\r
+>   X-Status: A (\Answered), F (\Flagged), T (\Draft) and D (\Deleted) flags\r
+> \r
+> (I know that alpine/pine and mutt recognize at least RO, and probably AFTD.)\r
+\r
+-Michal\r