Re: [PATCH 3/5] nmbug-status: Add an nmbug-status(5) man page
[notmuch-archives.git] / 8c / 05d3abd660d01eb775b9cad57dda6c6f01ad1e
1 Return-Path: <jrollins@servo.finestructure.net>\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 80B53431FB6\r
6         for <notmuch@notmuchmail.org>; Wed, 25 May 2011 18:01:42 -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: -1.921\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.921 tagged_above=-999 required=5\r
12         tests=[NO_DNS_FOR_FROM=0.379, RCVD_IN_DNSWL_MED=-2.3]\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 poPQmIBNTTB5 for <notmuch@notmuchmail.org>;\r
17         Wed, 25 May 2011 18:01:41 -0700 (PDT)\r
18 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
19         [131.215.239.19])\r
20         by olra.theworths.org (Postfix) with ESMTP id C08D0429E45\r
21         for <notmuch@notmuchmail.org>; Wed, 25 May 2011 18:01:35 -0700 (PDT)\r
22 Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
23         by earth-doxen-postvirus (Postfix) with ESMTP id 5AA2666E04A3;\r
24         Wed, 25 May 2011 18:01:34 -0700 (PDT)\r
25 X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
26 Received: from servo.finestructure.net (gwave-104.ligo.caltech.edu\r
27         [131.215.114.104]) (Authenticated sender: jrollins)\r
28         by earth-doxen-submit (Postfix) with ESMTP id 9128066E049A;\r
29         Wed, 25 May 2011 18:01:26 -0700 (PDT)\r
30 Received: by servo.finestructure.net (Postfix, from userid 1000)\r
31         id 7B6C87C6; Wed, 25 May 2011 18:01:26 -0700 (PDT)\r
32 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
33 To: notmuch@notmuchmail.org\r
34 Subject: [PATCH 06/11] test: add notmuch_show_sanitize_all function that is a\r
35         little more aggressive.\r
36 Date: Wed, 25 May 2011 18:01:15 -0700\r
37 Message-Id: <1306371680-19441-7-git-send-email-jrollins@finestructure.net>\r
38 X-Mailer: git-send-email 1.7.4.4\r
39 In-Reply-To: <1306371680-19441-1-git-send-email-jrollins@finestructure.net>\r
40 References: <1306371680-19441-1-git-send-email-jrollins@finestructure.net>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Thu, 26 May 2011 01:01:42 -0000\r
54 \r
55 The old notmuch_show_sanitize function only scrubed part of the\r
56 filename.  This one scrubs the full filename, as well as the message\r
57 id.\r
58 ---\r
59  test/test-lib.sh |    6 ++++++\r
60  1 files changed, 6 insertions(+), 0 deletions(-)\r
61 \r
62 diff --git a/test/test-lib.sh b/test/test-lib.sh\r
63 index 9e2e0b5..ae25635 100755\r
64 --- a/test/test-lib.sh\r
65 +++ b/test/test-lib.sh\r
66 @@ -502,6 +502,12 @@ notmuch_show_sanitize ()\r
67  {\r
68      sed -e "$NOTMUCH_SHOW_FILENAME_SQUELCH"\r
69  }\r
70 +notmuch_show_sanitize_all ()\r
71 +{\r
72 +    sed \\r
73 +       -e 's| filename:.*| filename:XXXXX|' \\r
74 +       -e 's| id:[^ ]* | id:XXXXX |'\r
75 +}\r
76  \r
77  # End of notmuch helper functions\r
78  \r
79 -- \r
80 1.7.4.4\r
81 \r