Re: [PATCH] doc: Allow rst2man.py as an alternative to rst2man
[notmuch-archives.git] / 51 / a5495c103818cabddfae06d45a713e20bc12d9
1 Return-Path: <teythoon@jade-hamburg.de>\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 AD08A429E44\r
6         for <notmuch@notmuchmail.org>; Mon, 30 Apr 2012 12:57:08 -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\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 MfDt92nZHOrt for <notmuch@notmuchmail.org>;\r
16         Mon, 30 Apr 2012 12:57:06 -0700 (PDT)\r
17 Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68])\r
18         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 4BC00431FAF\r
21         for <notmuch@notmuchmail.org>; Mon, 30 Apr 2012 12:56:43 -0700 (PDT)\r
22 Received: from mail.jade-hamburg.de (mail.jade-hamburg.de [85.183.11.228])\r
23         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
24         (No client certificate requested)\r
25         by mail.cryptobitch.de (Postfix) with ESMTPSA id D7890584BAD\r
26         for <notmuch@notmuchmail.org>; Mon, 30 Apr 2012 21:56:41 +0200 (CEST)\r
27 Received: by mail.jade-hamburg.de (Postfix, from userid 401)\r
28         id 5673ADF2A7; Mon, 30 Apr 2012 21:56:41 +0200 (CEST)\r
29 Received: from thinkbox.jade-hamburg.de (unknown [10.1.1.153])\r
30         (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
31         (No client certificate requested) (Authenticated sender: teythoon)\r
32         by mail.jade-hamburg.de (Postfix) with ESMTPSA id 70C5CDF2A3;\r
33         Mon, 30 Apr 2012 21:55:53 +0200 (CEST)\r
34 Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.77)\r
35         (envelope-from <teythoon@thinkbox.jade-hamburg.de>)\r
36         id 1SOwhM-0003yp-3G; Mon, 30 Apr 2012 21:55:52 +0200\r
37 From: Justus Winter <4winter@informatik.uni-hamburg.de>\r
38 To: notmuch@notmuchmail.org\r
39 Subject: [PATCH 3/5] go: update the addrlookup utility to go 1\r
40 Date: Mon, 30 Apr 2012 21:55:42 +0200\r
41 Message-Id:\r
42  <1335815744-15258-3-git-send-email-4winter@informatik.uni-hamburg.de>\r
43 X-Mailer: git-send-email 1.7.10\r
44 In-Reply-To:\r
45  <1335815744-15258-1-git-send-email-4winter@informatik.uni-hamburg.de>\r
46 References: <20120430195420.2528.48612@thinkbox.jade-hamburg.de>\r
47         <1335815744-15258-1-git-send-email-4winter@informatik.uni-hamburg.de>\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.13\r
50 Precedence: list\r
51 List-Id: "Use and development of the notmuch mail system."\r
52         <notmuch.notmuchmail.org>\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
56 List-Post: <mailto:notmuch@notmuchmail.org>\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
60 X-List-Received-Date: Mon, 30 Apr 2012 19:57:09 -0000\r
61 \r
62 Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>\r
63 ---\r
64  bindings/go/src/notmuch-addrlookup/addrlookup.go |    6 +++---\r
65  1 file changed, 3 insertions(+), 3 deletions(-)\r
66 \r
67 diff --git a/bindings/go/src/notmuch-addrlookup/addrlookup.go b/bindings/go/src/notmuch-addrlookup/addrlookup.go\r
68 index 16958e5..dabfeb0 100644\r
69 --- a/bindings/go/src/notmuch-addrlookup/addrlookup.go\r
70 +++ b/bindings/go/src/notmuch-addrlookup/addrlookup.go\r
71 @@ -86,7 +86,7 @@ func addresses_by_frequency(msgs *notmuch.Messages, name string, pass uint, addr\r
72         //      "<?(?P<mail>\\b\\w+([-+.]\\w+)*\\@\\w+[-\\.\\w]*\\.([-\\.\\w]+)*\\w\\b)>?)"\r
73         pattern = `.*` + strings.ToLower(name) + `.*`\r
74         var re *regexp.Regexp = nil\r
75 -       var err os.Error = nil\r
76 +       var err error = nil\r
77         if re,err = regexp.Compile(pattern); err != nil {\r
78                 log.Printf("error: %v\n", err)\r
79                 return &freqs\r
80 @@ -103,7 +103,7 @@ func addresses_by_frequency(msgs *notmuch.Messages, name string, pass uint, addr\r
81                 for _,header := range headers {\r
82                         froms := strings.ToLower(msg.GetHeader(header))\r
83                         //println("  froms: ["+froms+"]")\r
84 -                       for _,from := range strings.Split(froms, ",", -1) {\r
85 +                       for _,from := range strings.Split(froms, ",") {\r
86                                 from = strings.Trim(from, " ")\r
87                                 match := re.FindString(from)\r
88                                 //println("  -> match: ["+match+"]")\r
89 @@ -179,7 +179,7 @@ type address_matcher struct {\r
90  \r
91  func new_address_matcher() *address_matcher {\r
92         var cfg *config.Config\r
93 -       var err os.Error\r
94 +       var err error\r
95  \r
96         // honor NOTMUCH_CONFIG\r
97         home := os.Getenv("NOTMUCH_CONFIG")\r
98 -- \r
99 1.7.10\r
100 \r