1 Return-Path: <sojkam1@fel.cvut.cz>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 088AE431FB6
\r
6 for <notmuch@notmuchmail.org>; Sat, 5 Feb 2011 16:26:30 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id FW6NEog+6M00 for <notmuch@notmuchmail.org>;
\r
16 Sat, 5 Feb 2011 16:26:29 -0800 (PST)
\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 61960431FB5
\r
19 for <notmuch@notmuchmail.org>; Sat, 5 Feb 2011 16:26:29 -0800 (PST)
\r
20 Received: from localhost (unknown [192.168.200.4])
\r
21 by max.feld.cvut.cz (Postfix) with ESMTP id B38793CFE8E;
\r
22 Sun, 6 Feb 2011 01:26:28 +0100 (CET)
\r
23 X-Virus-Scanned: IMAP AMAVIS
\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])
\r
25 by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,
\r
27 with ESMTP id 1JVPGKAeXt7r; Sun, 6 Feb 2011 01:26:27 +0100 (CET)
\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])
\r
29 by max.feld.cvut.cz (Postfix) with ESMTP id 790E63CFE71;
\r
30 Sun, 6 Feb 2011 01:26:27 +0100 (CET)
\r
31 Received: from wsheee.2x.cz (unknown [213.29.198.144])
\r
32 (Authenticated sender: sojkam1)
\r
33 by imap.feld.cvut.cz (Postfix) with ESMTPSA id 735DA15C031;
\r
34 Sun, 6 Feb 2011 01:26:27 +0100 (CET)
\r
35 Received: from wsh by wsheee.2x.cz with local (Exim 4.72)
\r
36 (envelope-from <sojkam1@fel.cvut.cz>)
\r
37 id 1PlsSQ-00081f-Po; Sun, 06 Feb 2011 01:26:26 +0100
\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>
\r
39 To: micah <micah@riseup.net>, notmuch@notmuchmail.org
\r
40 Subject: Re: notmuch-show-get-filename and maildir location
\r
41 In-Reply-To: <874o8kk63p.fsf@algae.riseup.net>
\r
42 References: <874o8kk63p.fsf@algae.riseup.net>
\r
43 User-Agent: Notmuch/0.5-103-g1253785 (http://notmuchmail.org) Emacs/23.2.1
\r
45 Date: Sun, 06 Feb 2011 01:26:26 +0100
\r
46 Message-ID: <87r5bmovnx.fsf@wsheee.2x.cz>
\r
48 Content-Type: text/plain; charset=us-ascii
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Sun, 06 Feb 2011 00:26:30 -0000
\r
63 On Fri, 04 Feb 2011, micah wrote:
\r
65 > I recently upgraded to the newer notmuch to test out the new folder
\r
66 > patch (its great!) and the new decryption/signature verification (its
\r
67 > fantastic!), and noticed something odd start happening.
\r
69 > I think that notmuch moves a new message to the maildir cur directory,
\r
70 > From the new directory when you first read it. Is that right? This is
\r
71 > actually what I would expect with maildirs, but notmuch wasn't doing
\r
74 > The reason why I care is because if I open a message,
\r
75 > notmuch-show-get-filename tells me that the file is located in the
\r
76 > 'new/' path, but it is actually not there at all, looking around it
\r
77 > appears to be in the 'cur/' directory.
\r
79 > This is because I made a function to let me do bayes training by putting
\r
80 > mistaken emails in my Mistakes folder, so that they can be retrained:
\r
82 > (defun notmuch-mark-as-mistake ()
\r
83 > "Moves the current message into the Mistakes folder"
\r
85 > (let* ((fullpath (notmuch-show-get-filename))
\r
89 Use this instead of the above line.
\r
91 (let* ((fullpath (car (process-lines notmuch-command "search"
\r
92 "--output=files" (notmuch-show-get-message-id))))
\r
95 > Incidentally, does anyone know how I can do this without having to
\r
96 > actually do a notmuch-show on the message? Most spam I can recognize by
\r
97 > the subject in my inbox, and I dont need to open it to see that.
\r
99 Look at http://notmuchmail.org/emacstips/#index5h2. This is similar to
\r