Re: notmuch-emacs should correctly handle signature status on reply
[notmuch-archives.git] / 77 / eb6db6ca1a676fa033d5e697c9674310b511ec
1 Return-Path: <taylor@codecafe.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 001F340BC76\r
6         for <notmuch@notmuchmail.org>; Mon,  9 Apr 2012 14:11:57 -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: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 pbu-clYImB-y for <notmuch@notmuchmail.org>;\r
16         Mon,  9 Apr 2012 14:11:57 -0700 (PDT)\r
17 Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com\r
18         [209.85.214.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 85B9E4040EA\r
21         for <notmuch@notmuchmail.org>; Mon,  9 Apr 2012 14:11:57 -0700 (PDT)\r
22 Received: by obqv19 with SMTP id v19so7269155obq.26\r
23         for <notmuch@notmuchmail.org>; Mon, 09 Apr 2012 14:11:57 -0700 (PDT)\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25         d=google.com; s=20120113;\r
26         h=date:from:to:subject:message-id:mime-version:content-type\r
27         :content-disposition:user-agent:x-gm-message-state;\r
28         bh=bC42mCOz39CXJKOpMa7Eg9/01psPtpVHwjd+GDG1OTw=;\r
29         b=c7r00iWr/9UGlUq+4kTZh2149sui91Og0XBq9m81SbjeP4Af7BQ9h4vSpUU1PhBIe9\r
30         ouRL7GJLf45euA24MjLd6PfZITFekHm+tEDq3x7WBRPVoLxtFM0WaQbSA6OZoeaq8Skc\r
31         wK9g1anCjM1Uyly7AKkphxKXV+Q1bz3zpZVgZ7c3Qb+khSv6H7SMwsg9gpyWDt/MH1FD\r
32         vtWEa00vHif8IjZDwhubRD0Bj6r06PMxHjS2Xz2q68mccQNO2OCdPP7JA7JFUecvBF17\r
33         YgZ1Vp5hvBR2LOgfSKbEoBfbsaueWzOidhCIUVBuFeVNkEfGoY3oGF0etSbj1sq99Os0\r
34         BnEw==\r
35 Received: by 10.60.3.34 with SMTP id 2mr12436682oez.27.1334005916929;\r
36         Mon, 09 Apr 2012 14:11:56 -0700 (PDT)\r
37 Received: from localhost (cpe-173-174-57-204.austin.res.rr.com.\r
38         [173.174.57.204])\r
39         by mx.google.com with ESMTPS id h2sm4913995obn.20.2012.04.09.14.11.55\r
40         (version=TLSv1/SSLv3 cipher=OTHER);\r
41         Mon, 09 Apr 2012 14:11:56 -0700 (PDT)\r
42 Date: Mon, 9 Apr 2012 16:11:53 -0500\r
43 From: Taylor Carpenter <taylor@codecafe.com>\r
44 To: notmuch@notmuchmail.org\r
45 Subject: [PATCH] replace gnu xargs usage in notmuch-mutt with perl\r
46 Message-ID: <20120409211153.GA6497@codecafe.com>\r
47 MIME-Version: 1.0\r
48 Content-Type: text/plain; charset=us-ascii\r
49 Content-Disposition: inline\r
50 User-Agent: Mutt/1.5.21 (2010-09-15)\r
51 X-Gm-Message-State:\r
52  ALoCoQkK+b7H414PboOiSbblJPc9UCW6Yit6RvJ/XAWIIV2cEiQs14fJiYsVOAw3PkUihyikFTHB\r
53 X-BeenThere: notmuch@notmuchmail.org\r
54 X-Mailman-Version: 2.1.13\r
55 Precedence: list\r
56 List-Id: "Use and development of the notmuch mail system."\r
57         <notmuch.notmuchmail.org>\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
61 List-Post: <mailto:notmuch@notmuchmail.org>\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
65 X-List-Received-Date: Mon, 09 Apr 2012 21:11:58 -0000\r
66 \r
67 ---\r
68  contrib/notmuch-mutt/notmuch-mutt |   12 ++++++++----\r
69  1 files changed, 8 insertions(+), 4 deletions(-)\r
70 \r
71 diff --git a/contrib/notmuch-mutt/notmuch-mutt b/contrib/notmuch-mutt/notmuch-mutt\r
72 index 71206c3..dbe7f2d 100755\r
73 --- a/contrib/notmuch-mutt/notmuch-mutt\r
74 +++ b/contrib/notmuch-mutt/notmuch-mutt\r
75 @@ -1,4 +1,4 @@\r
76 -#!/usr/bin/perl -w\r
77 +#!/usr/bin/env perl -w\r
78  #\r
79  # notmuch-mutt - notmuch (of a) helper for Mutt\r
80  #\r
81 @@ -12,6 +12,7 @@ use strict;\r
82  use warnings;\r
83  \r
84  use File::Path;\r
85 +use File::Basename;\r
86  use Getopt::Long qw(:config no_getopt_compat);\r
87  use Mail::Internet;\r
88  use Mail::Box::Maildir;\r
89 @@ -41,9 +42,12 @@ sub search($$) {\r
90      $query = shell_quote($query);\r
91  \r
92      empty_maildir($maildir);\r
93 -    system("notmuch search --output=files $query"\r
94 -          . " | sed -e 's: :\\\\ :g'"\r
95 -          . " | xargs --no-run-if-empty ln -s -t $maildir/cur/");\r
96 +    my @filelist = `notmuch search --output=files $query`;\r
97 +    foreach(@filelist) {\r
98 +        chomp;\r
99 +        my $target = sprintf("$maildir/cur/%s", basename($_));\r
100 +        symlink($_, $target);\r
101 +    }\r
102  }\r
103  \r
104  sub prompt($$) {\r
105 -- \r
106 1.7.7.4\r
107 \r