Re: [PATCH 1/2] cli: S/MIME verification/decryption support
[notmuch-archives.git] / e8 / 80c692764000e5e99dae9f9eedd2ba8cf6e1da
1 Return-Path: <tomi.ollila@nixu.com>\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 22D7A431FAF\r
6         for <notmuch@notmuchmail.org>; Fri, 20 Jan 2012 05:32:46 -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 mT5QmUhynGv5 for <notmuch@notmuchmail.org>;\r
16         Fri, 20 Jan 2012 05:32:44 -0800 (PST)\r
17 Received: from mail-gw3.nixu.fi (mail-gw3.nixu.fi [193.209.237.7])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 3E05D431FAE\r
21         for <notmuch@notmuchmail.org>; Fri, 20 Jan 2012 05:32:44 -0800 (PST)\r
22 Received: from pps.filterd (mail-gw3 [127.0.0.1])\r
23         by mail-gw3.nixu.fi (8.14.4/8.14.4) with SMTP id q0KDSfDI014248;\r
24         Fri, 20 Jan 2012 15:32:42 +0200\r
25 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
26         by mail-gw3.nixu.fi with ESMTP id 114cs1am5v-1\r
27         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
28         Fri, 20 Jan 2012 15:32:42 +0200\r
29 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
30         by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id\r
31         q0KDWf6k014611; Fri, 20 Jan 2012 15:32:41 +0200\r
32 From: Tomi Ollila <tomi.ollila@iki.fi>\r
33 To: Thomas Jost <schnouki@schnouki.net>\r
34 Subject: Re: [PATCH] Add pseudo-compatibility with gmime 2.6\r
35 In-Reply-To: <87k44n2qsw.fsf@schnouki.net>\r
36 References: <8762gbtd6p.fsf@schnouki.net>\r
37         <1326758199-18058-1-git-send-email-schnouki@schnouki.net>\r
38         <20120117034714.GG16740@mit.edu> <8739bea9lc.fsf@thor.loria.fr>\r
39         <20120117203836.GR16740@mit.edu> <87k44n2qsw.fsf@schnouki.net>\r
40 User-Agent: Notmuch/0.11+71~gefa5d6c (http://notmuchmail.org) Emacs/23.3.1\r
41         (i686-pc-linux-gnu)\r
42 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
43         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
44         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
45 Date: Fri, 20 Jan 2012 15:32:41 +0200\r
46 Message-ID: <yf68vl2a492.fsf@taco2.nixu.fi>\r
47 MIME-Version: 1.0\r
48 Content-Type: text/plain; charset=us-ascii\r
49 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7361,\r
50  1.0.211,       0.0.0000        definitions=2012-01-20_03:2012-01-20, 2012-01-20,\r
51         1970-01-01 signatures=0\r
52 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0\r
53         ipscore=0 suspectscore=0\r
54         phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0\r
55         reason=mlx\r
56         scancount=1 engine=6.0.2-1012030000 definitions=main-1201200097\r
57 Cc: notmuch@notmuchmail.org\r
58 X-BeenThere: notmuch@notmuchmail.org\r
59 X-Mailman-Version: 2.1.13\r
60 Precedence: list\r
61 List-Id: "Use and development of the notmuch mail system."\r
62         <notmuch.notmuchmail.org>\r
63 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
66 List-Post: <mailto:notmuch@notmuchmail.org>\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
68 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
69         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
70 X-List-Received-Date: Fri, 20 Jan 2012 13:32:46 -0000\r
71 \r
72 On Fri, 20 Jan 2012 00:52:47 +0100, Thomas Jost <schnouki@schnouki.net> wrote:\r
73\r
74 > Here is how I did:\r
75\r
76 >   (ldd notmuch | grep -q gmime-2.6) && test_subtest_known_broken\r
77\r
78 > ldd notmuch will show "/path/to/libgmime-2.4.so.*" or\r
79 > "libgmime-2.6.so.*" so we can easily check this in the test suite.\r
80 > It's a little hacky but it seems to work. AFAIK ldd is a pretty standard\r
81 > tool so it should be available (almost) everywhere. However if you have\r
82 > a better idea I'll be glad to hear it.\r
83 \r
84 The "hack" is good in a sense that if that check fails in any case\r
85 the test_subtest_known_broken is not executed and we get FAIL instead of\r
86 BROKEN.\r
87 The subshell is unneeded:\r
88 \r
89         ldd notmuch | grep -q gmime-2.6 && test_subtest_known_broken\r
90 \r
91 does the trick (potentially less forks)... ok now I have to test ;)\r
92 \r
93 haha:\r
94  $ rm xfoo.* xbar.*\r
95  \r
96  $ strace -ff -o xfoo sh -c '(ldd /bin/ls | grep -q libc) && echo foo'\r
97  foo\r
98  $ ls xfoo.*\r
99  xfoo.14277  xfoo.14279  xfoo.14281  xfoo.14283  xfoo.14285\r
100  xfoo.14278  xfoo.14280  xfoo.14282  xfoo.14284\r
101 \r
102  $ strace -ff -o xbar sh -c 'ldd /bin/ls | grep -q libc && echo foo'\r
103  foo\r
104  $ ls xbar.*\r
105  xbar.14292  xbar.14294  xbar.14296  xbar.14298\r
106  xbar.14293  xbar.14295  xbar.14297  xbar.14299\r
107 \r
108 \r
109 Tomi\r