Re: notmuch-emacs should correctly handle signature status on reply
[notmuch-archives.git] / a7 / 649a5a613cf708456165f832b2cb14ea0d5030
1 Return-Path: <micah@riseup.net>\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 16CC5431FB6\r
6         for <notmuch@notmuchmail.org>; Thu,  3 Feb 2011 16:15:27 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.689\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.689 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7, T_MIME_NO_TEXT=0.01,\r
13         UNPARSEABLE_RELAY=0.001] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id qTq1wlLt26VF for <notmuch@notmuchmail.org>;\r
17         Thu,  3 Feb 2011 16:15:26 -0800 (PST)\r
18 Received: from mx1.riseup.net (mx1.riseup.net [204.13.164.18])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 9ECD5431FB5\r
22         for <notmuch@notmuchmail.org>; Thu,  3 Feb 2011 16:15:26 -0800 (PST)\r
23 Received: from tern.riseup.net (tern-pn.riseup.net [10.0.1.12])\r
24         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
25         (Client CN "*.riseup.net", Issuer "Gandi Standard SSL CA" (verified OK))\r
26         by mx1.riseup.net (Postfix) with ESMTPS id D80AA25EC22\r
27         for <notmuch@notmuchmail.org>; Thu,  3 Feb 2011 16:15:23 -0800 (PST)\r
28 Received: from [127.0.0.1] (localhost [127.0.0.1])\r
29         (Authenticated sender: micah@tern.riseup.net)\r
30         with ESMTPSA id DBC3114C16F\r
31 Received: by algae (Postfix, from userid 1000)\r
32         id 2D752419FD; Thu,  3 Feb 2011 19:15:23 -0500 (EST)\r
33 From: micah <micah@riseup.net>\r
34 To: notmuch@notmuchmail.org\r
35 Subject: notmuch-show-get-filename and maildir location\r
36 Date: Thu, 03 Feb 2011 19:15:22 -0500\r
37 Message-ID: <874o8kk63p.fsf@algae.riseup.net>\r
38 MIME-Version: 1.0\r
39 Content-Type: multipart/signed; boundary="=-=-=";\r
40         micalg=pgp-sha512; protocol="application/pgp-signature"\r
41 X-Virus-Scanned: clamav-milter 0.96.5 at mx1\r
42 X-Virus-Status: Clean\r
43 X-BeenThere: notmuch@notmuchmail.org\r
44 X-Mailman-Version: 2.1.13\r
45 Precedence: list\r
46 List-Id: "Use and development of the notmuch mail system."\r
47         <notmuch.notmuchmail.org>\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
51 List-Post: <mailto:notmuch@notmuchmail.org>\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
55 X-List-Received-Date: Fri, 04 Feb 2011 00:15:27 -0000\r
56 \r
57 --=-=-=\r
58 Content-Transfer-Encoding: quoted-printable\r
59 \r
60 \r
61 I recently upgraded to the newer notmuch to test out the new folder\r
62 patch (its great!) and the new decryption/signature verification (its\r
63 fantastic!), and noticed something odd start happening.\r
64 \r
65 I think that notmuch moves a new message to the maildir cur directory,\r
66 From=20the new directory when you first read it. Is that right? This is\r
67 actually what I would expect with maildirs, but notmuch wasn't doing\r
68 this before.\r
69 \r
70 The reason why I care is because if I open a message,\r
71 notmuch-show-get-filename tells me that the file is located in the\r
72 'new/' path, but it is actually not there at all, looking around it\r
73 appears to be in the 'cur/' directory.=20\r
74 \r
75 This is because I made a function to let me do bayes training by putting\r
76 mistaken emails in my Mistakes folder, so that they can be retrained:\r
77 \r
78 (defun notmuch-mark-as-mistake ()\r
79 "Moves the current message into the Mistakes folder"\r
80   (interactive)\r
81 (let* ((fullpath (notmuch-show-get-filename))\r
82       (filename (file-name-nondirectory fullpath)))\r
83       (save-excursion\r
84 (rename-file fullpath (concat "/home/micah/Maildir/INBOX.Mistakes/new/" fil=\r
85 ename)))\r
86 (notmuch-show-archive-thread-then-exit)\r
87 (notmuch-search-refresh-view)\r
88 (hl-line-mode 1)(hl-line-mode 1)))\r
89 \r
90 (define-key notmuch-show-mode-map (kbd "S") 'notmuch-mark-as-mistake)\r
91 \r
92 if I hit the 'S' key on a message now, it complains that it cannot\r
93 rename the file because it doesn't exist.\r
94 \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
98 \r
99 micah\r
100 \r
101 --=-=-=\r
102 Content-Type: application/pgp-signature\r
103 \r
104 -----BEGIN PGP SIGNATURE-----\r
105 Version: GnuPG v1.4.10 (GNU/Linux)\r
106 \r
107 iQIcBAEBCgAGBQJNS0UaAAoJEIy/mjIoYaeQKM8P/jYB+hnpB8IHCAcPG5WYO7y5\r
108 1kaDT7w+gUUknp4BaoPapWT0QJhPH+6bJ2Rdn/Nn31W2sPBr8T88Wh4op+pRPgk1\r
109 pB0eVPCV+wT7ZulqiaXzt1fI45b0ywdcwbt8SxdSt90MPXmxfIwIyRODyNs9zuaj\r
110 7m0o558TMKOUrc2LVgICxQquiZskk3tpEDOBSWCw7gDipiUrCRzngcWGmP/WLedC\r
111 G3PMok9IdAWL3SNUgoUe3xs62xzvoGpnr36yIyMLaim7o5ijQbdhG/Md5z6zpQgY\r
112 Zfa5igdrTY0HAqefC/K4Qc+wuxUPcfxMWSuUFHgQNDVbdS96Z4NfGCFiGT40lCd0\r
113 3XDxab10t484WxsPob2a8m+mfnnQeCu313zIvLfUPe56OY82nqr0Te7d8B501+V4\r
114 ZN2BB872MW1vC+AZJS3bDTcJa8MDjvQzMCtcNiUFIdav1CtOEBOmzQgg0Hup7V3/\r
115 /ERWJk/cjFWHrr3WTuz2anqibVgWWX5yeS3QpHSVn9C6gJcm5KIvtNI8BQZkF0r2\r
116 ok/HbLvybW9FdagsXcMPpSE7n/5qNoAHd7Fqh1pKaR/GFRZC9Mq+5MM06rsJE1Ip\r
117 a+4Bu/DukK6loOVxQdmAe4Hhr1ZOAOPiZD94sTa4V16v5BU5wF/af37cdL0EWHZe\r
118 41/KBNSsS+D7FY8khJVB\r
119 =NNsh\r
120 -----END PGP SIGNATURE-----\r
121 --=-=-=--\r