Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / ac / 14d9ede838241e5ec6cf298075e8af784b948a
1 Return-Path: <alan.schmitt@polytechnique.org>\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 1E53B431FBD\r
6         for <notmuch@notmuchmail.org>; Fri, 18 Jul 2014 06:09:58 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -5\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-5 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_HI=-5] autolearn=disabled\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 LXbkzbBYlpoz for <notmuch@notmuchmail.org>;\r
16         Fri, 18 Jul 2014 06:09:52 -0700 (PDT)\r
17 Received: from mail2-relais-roc.national.inria.fr\r
18         (mail2-relais-roc.national.inria.fr [192.134.164.83])\r
19         (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 49CBC431FAE\r
22         for <notmuch@notmuchmail.org>; Fri, 18 Jul 2014 06:09:52 -0700 (PDT)\r
23 X-IronPort-AV: E=Sophos;i="5.01,685,1400018400"; d="scan'208";a="85919657"\r
24 Received: from cbg35-2-78-242-14-140.fbx.proxad.net (HELO top.local)\r
25         ([78.242.14.140])\r
26         by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA;\r
27         18 Jul 2014 15:09:49 +0200\r
28 From: Alan Schmitt <alan.schmitt@polytechnique.org>\r
29 To: notmuch <notmuch@notmuchmail.org>\r
30 Subject: using notmuch programmatically from emacs\r
31 Date: Fri, 18 Jul 2014 15:09:47 +0200\r
32 Message-ID: <m2r41iyfs4.fsf@polytechnique.org>\r
33 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin)\r
34 MIME-Version: 1.0\r
35 Content-Type: multipart/signed; boundary="=-=-=";\r
36         micalg=pgp-sha512; protocol="application/pgp-signature"\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.13\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Fri, 18 Jul 2014 13:09:58 -0000\r
50 \r
51 --=-=-=\r
52 Content-Type: text/plain\r
53 Content-Transfer-Encoding: quoted-printable\r
54 \r
55 Hello,\r
56 \r
57 I sometimes have to find a message knowing only its message id. I know\r
58 how to use a notmuch search in emacs to find the message, then use\r
59 another function to display it in gnus, but I would like to do it\r
60 directly without going through the *notmuch-search* buffer.\r
61 \r
62 Right now I'm doing the following:\r
63 \r
64 #+begin_src emacs-lisp\r
65   (defun as/msgid-to-gnus (msgid)\r
66     "Search for the MSGID using notmuch, then open the message with\r
67   gnus."\r
68     (let ((file (shell-command-to-string (concat "notmuch search --output=\r
69 =3Dfiles 'id:" msgid "'"))))\r
70       (gnus-summary-read-group (notmuch-file-to-group file))\r
71       (gnus-summary-refer-article msgid)))\r
72 #+end_src\r
73 \r
74 (the `notmuch-file-to-group' function takes a file name and finds the\r
75 corresponding gnus group).\r
76 \r
77 Is there a way to do the same thing using notmuch.el functionality\r
78 (i.e., without having to do the `shell-command-to-string' myself)?\r
79 \r
80 Thanks,\r
81 \r
82 Alan\r
83 \r
84 =2D-=20\r
85 OpenPGP Key ID : 040D0A3B4ED2E5C7\r
86 \r
87 --=-=-=\r
88 Content-Type: application/pgp-signature\r
89 \r
90 -----BEGIN PGP SIGNATURE-----\r
91 Version: GnuPG/MacGPG2 v2.0.22 (Darwin)\r
92 \r
93 iQEcBAEBCgAGBQJTyRyfAAoJEAQNCjtO0uXHFdcH/0B+Ks1NUUvD1uX7AmA1kBJI\r
94 5dfsbTs4EeG5hd53WAuSuWhYlljvZ5ktxuPuJ74AZOlX2rBE6/K7xpeT3gz4ppac\r
95 yE4dAbsnJ9dkt+xTYkGx2orTR70/rT72NglIrF19QG6v60qg6IE5IPTdVYYgA2Xf\r
96 0gKC3sDRGxLHFS3dNZuLkZ59uU7NCedlYrzTO11fDR93NqJ1aXHNeyyjDgPQ63Np\r
97 LgRxtEit93eCqOZNf4HDk00VvUaEGZRTVDYED1qSWPpxPwOW710dkLJnzrPncW6s\r
98 5QtDdnYXgB37XD0CQQ8h1NM6KIEUXPbH6y6Na7peSunwsuw15ulKFSeLN/z1SU4=\r
99 =Oiti\r
100 -----END PGP SIGNATURE-----\r
101 --=-=-=--\r