Re: notmuch-show-get-filename and maildir location
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 6 Feb 2011 00:26:26 +0000 (01:26 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:53 +0000 (09:37 -0800)
d3/551e0203d6e6834c5ab27595770ecdd578a60d [new file with mode: 0644]

diff --git a/d3/551e0203d6e6834c5ab27595770ecdd578a60d b/d3/551e0203d6e6834c5ab27595770ecdd578a60d
new file mode 100644 (file)
index 0000000..d8ac624
--- /dev/null
@@ -0,0 +1,102 @@
+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 088AE431FB6\r
+       for <notmuch@notmuchmail.org>; Sat,  5 Feb 2011 16:26:30 -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 FW6NEog+6M00 for <notmuch@notmuchmail.org>;\r
+       Sat,  5 Feb 2011 16:26:29 -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 61960431FB5\r
+       for <notmuch@notmuchmail.org>; Sat,  5 Feb 2011 16:26:29 -0800 (PST)\r
+Received: from localhost (unknown [192.168.200.4])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id B38793CFE8E;\r
+       Sun,  6 Feb 2011 01:26:28 +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 1JVPGKAeXt7r; Sun,  6 Feb 2011 01:26:27 +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 790E63CFE71;\r
+       Sun,  6 Feb 2011 01:26:27 +0100 (CET)\r
+Received: from wsheee.2x.cz (unknown [213.29.198.144])\r
+       (Authenticated sender: sojkam1)\r
+       by imap.feld.cvut.cz (Postfix) with ESMTPSA id 735DA15C031;\r
+       Sun,  6 Feb 2011 01:26:27 +0100 (CET)\r
+Received: from wsh by wsheee.2x.cz with local (Exim 4.72)\r
+       (envelope-from <sojkam1@fel.cvut.cz>)\r
+       id 1PlsSQ-00081f-Po; Sun, 06 Feb 2011 01:26:26 +0100\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: micah <micah@riseup.net>, notmuch@notmuchmail.org\r
+Subject: Re: notmuch-show-get-filename and maildir location\r
+In-Reply-To: <874o8kk63p.fsf@algae.riseup.net>\r
+References: <874o8kk63p.fsf@algae.riseup.net>\r
+User-Agent: Notmuch/0.5-103-g1253785 (http://notmuchmail.org) Emacs/23.2.1\r
+       (i486-pc-linux-gnu)\r
+Date: Sun, 06 Feb 2011 01:26:26 +0100\r
+Message-ID: <87r5bmovnx.fsf@wsheee.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: Sun, 06 Feb 2011 00:26:30 -0000\r
+\r
+On Fri, 04 Feb 2011, micah wrote:\r
+> \r
+> I recently upgraded to the newer notmuch to test out the new folder\r
+> patch (its great!) and the new decryption/signature verification (its\r
+> fantastic!), and noticed something odd start happening.\r
+> \r
+> I think that notmuch moves a new message to the maildir cur directory,\r
+> From the new directory when you first read it. Is that right? This is\r
+> actually what I would expect with maildirs, but notmuch wasn't doing\r
+> this before.\r
+> \r
+> The reason why I care is because if I open a message,\r
+> notmuch-show-get-filename tells me that the file is located in the\r
+> 'new/' path, but it is actually not there at all, looking around it\r
+> appears to be in the 'cur/' directory. \r
+> \r
+> This is because I made a function to let me do bayes training by putting\r
+> mistaken emails in my Mistakes folder, so that they can be retrained:\r
+> \r
+> (defun notmuch-mark-as-mistake ()\r
+> "Moves the current message into the Mistakes folder"\r
+>   (interactive)\r
+> (let* ((fullpath (notmuch-show-get-filename))\r
+\r
+Hi Micah,\r
+\r
+Use this instead of the above line.\r
+\r
+  (let* ((fullpath (car (process-lines notmuch-command "search"\r
+                                       "--output=files" (notmuch-show-get-message-id))))\r
+       \r
+         \r
+> Incidentally, does anyone know how I can do this without having to\r
+> actually do a notmuch-show on the message? Most spam I can recognize by\r
+> the subject in my inbox, and I dont need to open it to see that.\r
+\r
+Look at http://notmuchmail.org/emacstips/#index5h2. This is similar to\r
+what you want.\r
+\r
+-Michal\r