[PATCH v2] add notmuch.Database.get_status_string()
[notmuch-archives.git] / 03 / 4fd0f6aba9c2a45c9eadb3705fa7b09d1ed94b
1 Return-Path: <gmn-notmuch@m.gmane.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 1A344431FBC\r
6         for <notmuch@notmuchmail.org>; Mon, 17 Nov 2014 08:56:21 -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.165\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.165 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7, RCVD_NUMERIC_HELO=0.865]\r
13         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 Pti3nq5r+3qB for <notmuch@notmuchmail.org>;\r
17         Mon, 17 Nov 2014 08:56:13 -0800 (PST)\r
18 Received: from plane.gmane.org (plane.gmane.org [80.91.229.3])\r
19         (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 1EB62431FB6\r
22         for <notmuch@notmuchmail.org>; Mon, 17 Nov 2014 08:56:13 -0800 (PST)\r
23 Received: from list by plane.gmane.org with local (Exim 4.69)\r
24         (envelope-from <gmn-notmuch@m.gmane.org>) id 1XqPaw-0005A9-VG\r
25         for notmuch@notmuchmail.org; Mon, 17 Nov 2014 17:56:06 +0100\r
26 Received: from 151.62.83.181 ([151.62.83.181])\r
27         by main.gmane.org with esmtp (Gmexim 0.1 (Debian))\r
28         id 1AlnuQ-0007hv-00\r
29         for <notmuch@notmuchmail.org>; Mon, 17 Nov 2014 17:56:06 +0100\r
30 Received: from lele by 151.62.83.181 with local (Gmexim 0.1 (Debian))\r
31         id 1AlnuQ-0007hv-00\r
32         for <notmuch@notmuchmail.org>; Mon, 17 Nov 2014 17:56:06 +0100\r
33 X-Injected-Via-Gmane: http://gmane.org/\r
34 To: notmuch@notmuchmail.org\r
35 From: Lele Gaifax <lele@metapensiero.it>\r
36 Subject: Re: Forwarding a mail, with a non-ASCII signature\r
37 Date: Mon, 17 Nov 2014 17:55:53 +0100\r
38 Organization: Nautilus Entertainments\r
39 Lines: 43\r
40 Message-ID: <87ioid7ome.fsf@nautilus.nautilus>\r
41 References: <87ioifb55d.fsf@nautilus.nautilus>\r
42         <cunbno62dga.fsf@gargravarr.hh.sledj.net>\r
43 Mime-Version: 1.0\r
44 Content-Type: text/plain; charset=utf-8\r
45 Content-Transfer-Encoding: 8bit\r
46 X-Complaints-To: usenet@ger.gmane.org\r
47 X-Gmane-NNTP-Posting-Host: 151.62.83.181\r
48 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.51 (gnu/linux)\r
49 Cancel-Lock: sha1:G8KHWWfaxEYN5uvFvjjyVTRbBNo=\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Mon, 17 Nov 2014 16:56:21 -0000\r
63 \r
64 David Edmondson <dme@dme.org> writes:\r
65 \r
66 > How do you insert the signature? That is, do you have some bits of\r
67 > configuration that add the signature to outgoing messages?\r
68 \r
69 Nothing special, just the following config snippet in my .gnus.el::\r
70 \r
71     (setq gnus-posting-styles\r
72           '((".*"\r
73              (signature-file "~/.signature")\r
74              (name "Lele Gaifax")\r
75              (organization "Nautilus Entertainments"))))\r
76 \r
77 > Could you try this patch please?\r
78\r
79 > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
80 > index 6e03f1e..1592ca9 100644\r
81 > --- a/emacs/notmuch-show.el\r
82 > +++ b/emacs/notmuch-show.el\r
83 > @@ -235,9 +235,9 @@ For example, if you wanted to remove an \"unread\" tag and add a\r
84 >         (let ((buf (generate-new-buffer (concat "*notmuch-msg-" id "*"))))\r
85 >           (with-current-buffer buf\r
86 >          (let ((coding-system-for-read 'no-conversion))\r
87 > -          (call-process notmuch-command nil t nil "show" "--format=raw" id)\r
88 > -          ,@body)\r
89 > -        (kill-buffer buf))))))\r
90 > +          (call-process notmuch-command nil t nil "show" "--format=raw" id))\r
91 > +        ,@body)\r
92 > +      (kill-buffer buf)))))\r
93 >  \r
94 >  (defun notmuch-show-turn-on-visual-line-mode ()\r
95 >    "Enable Visual Line mode."\r
96 \r
97 Yes! This works great, with it the forward buffer contains the signature\r
98 loaded with the correct encoding, and the sendmail succeeds without\r
99 prompting about unreadable chars.\r
100 \r
101 Thanks a lot for fixing it,\r
102 ciao, lele.\r
103 -- \r
104 nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri\r
105 real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.\r
106 lele@metapensiero.it  |                 -- Fortunato Depero, 1929.\r
107 \r