Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 9a / de59e8e10daa3881df01ff4ce95abdbbb49088
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 08113431FB6\r
6         for <notmuch@notmuchmail.org>; Sat,  5 Feb 2011 15:08:58 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 uu0D4iE0VwHa for <notmuch@notmuchmail.org>;\r
16         Sat,  5 Feb 2011 15:08:57 -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 82A08431FB5\r
19         for <notmuch@notmuchmail.org>; Sat,  5 Feb 2011 15:08:57 -0800 (PST)\r
20 Received: from localhost (unknown [192.168.200.4])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id D619F3CFEEF;\r
22         Sun,  6 Feb 2011 00:08:56 +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
26         port 10044)\r
27         with ESMTP id PyABSO63mtqV; Sun,  6 Feb 2011 00:08:55 +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 AE1643CFEA1;\r
30         Sun,  6 Feb 2011 00:08:55 +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 A904315C031;\r
34         Sun,  6 Feb 2011 00:08:55 +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 1PlrFP-0007Zn-2c; Sun, 06 Feb 2011 00:08:55 +0100\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
39 To: Peter John Hartman <peterjohnhartman@gmail.com>, notmuch@notmuchmail.org\r
40 Subject: Re: [PATCH] Have --format=mbox insert Status:\r
41 In-Reply-To: <20110202234719.GA28241@triltoucheee.wireless.utoronto.ca>\r
42 References: <20110202234719.GA28241@triltoucheee.wireless.utoronto.ca>\r
43 User-Agent: Notmuch/0.5-103-g1253785 (http://notmuchmail.org) Emacs/23.2.1\r
44         (i486-pc-linux-gnu)\r
45 Date: Sun, 06 Feb 2011 00:08:54 +0100\r
46 Message-ID: <87wrleoz95.fsf@wsheee.2x.cz>\r
47 MIME-Version: 1.0\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
51 Precedence: list\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: Sat, 05 Feb 2011 23:08:58 -0000\r
62 \r
63 On Wed, 02 Feb 2011, Peter John Hartman wrote:\r
64 > Hi folks,\r
65\r
66 > This is not a complete patch, but should give you an idea.  (It works well\r
67 > enough for me, but I think it could do more).\r
68\r
69 > diff --git a/notmuch-show.c b/notmuch-show.c\r
70 > index ef421ec..dff66de 100644\r
71 > --- a/notmuch-show.c\r
72 > +++ b/notmuch-show.c\r
73 > @@ -272,6 +272,12 @@ format_message_mbox (const void *ctx,\r
74 >  \r
75 >      printf ("From %s %s", from, date_asctime);\r
76 >  \r
77 > +    if (strstr(_get_tags_as_string(ctx,message),"unread") != NULL) {\r
78 > +      printf ("Status: O\n");\r
79 > +    } else {\r
80 > +      printf ("Status: RO\n");\r
81 > +    }\r
82 > +\r
83 \r
84 Hi Peter,\r
85 \r
86 would this output be compatible with all mbox consumers or only with\r
87 those who expect the Status: line? If the latter, we would probably want\r
88 a command line option to enable this.\r
89 \r
90 > For instance, I combine notmuch with mutt as follows:\r
91\r
92 > notmuch show --format=mbox $(notmuch search thread:xxx | cut -d' ' -f1) >\r
93 > tmp.mbox && mutt -f tmp.mbox && rm -f tmp.mbox\r
94 \r
95 Interesting :)\r
96 \r
97 -Michal\r