unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Justus Winter <4winter@informatik.uni-hamburg.de>
To: notmuch@notmuchmail.org
Subject: [PATCH 3/5] go: update the addrlookup utility to go 1
Date: Mon, 30 Apr 2012 21:55:42 +0200	[thread overview]
Message-ID: <1335815744-15258-3-git-send-email-4winter@informatik.uni-hamburg.de> (raw)
In-Reply-To: <1335815744-15258-1-git-send-email-4winter@informatik.uni-hamburg.de>

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
---
 bindings/go/src/notmuch-addrlookup/addrlookup.go |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bindings/go/src/notmuch-addrlookup/addrlookup.go b/bindings/go/src/notmuch-addrlookup/addrlookup.go
index 16958e5..dabfeb0 100644
--- a/bindings/go/src/notmuch-addrlookup/addrlookup.go
+++ b/bindings/go/src/notmuch-addrlookup/addrlookup.go
@@ -86,7 +86,7 @@ func addresses_by_frequency(msgs *notmuch.Messages, name string, pass uint, addr
 	// 	"<?(?P<mail>\\b\\w+([-+.]\\w+)*\\@\\w+[-\\.\\w]*\\.([-\\.\\w]+)*\\w\\b)>?)"
 	pattern = `.*` + strings.ToLower(name) + `.*`
 	var re *regexp.Regexp = nil
-	var err os.Error = nil
+	var err error = nil
 	if re,err = regexp.Compile(pattern); err != nil {
 		log.Printf("error: %v\n", err)
 		return &freqs
@@ -103,7 +103,7 @@ func addresses_by_frequency(msgs *notmuch.Messages, name string, pass uint, addr
 		for _,header := range headers {
 			froms := strings.ToLower(msg.GetHeader(header))
 			//println("  froms: ["+froms+"]")
-			for _,from := range strings.Split(froms, ",", -1) {
+			for _,from := range strings.Split(froms, ",") {
 				from = strings.Trim(from, " ")
 				match := re.FindString(from)
 				//println("  -> match: ["+match+"]")
@@ -179,7 +179,7 @@ type address_matcher struct {
 
 func new_address_matcher() *address_matcher {
 	var cfg *config.Config
-	var err os.Error
+	var err error
 
 	// honor NOTMUCH_CONFIG
 	home := os.Getenv("NOTMUCH_CONFIG")
-- 
1.7.10

  parent reply	other threads:[~2012-04-30 19:57 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-28 21:45 [PATCH] go: Update to the current notmuch_database_find_message API Austin Clements
2012-04-30 11:53 ` David Bremner
2012-04-30 19:54   ` Justus Winter
2012-04-30 19:55     ` [PATCH 1/5] go: reorganize the go bindings Justus Winter
2012-04-30 19:55       ` [PATCH 2/5] go: set LDFLAGS, fix include directive Justus Winter
2012-04-30 19:55       ` Justus Winter [this message]
2012-04-30 19:55       ` [PATCH 4/5] go: update the build system Justus Winter
2012-04-30 19:55       ` [PATCH 5/5] go: format the souce code using gofmt Justus Winter
2012-05-04 18:38       ` [PATCH 1/5] go: reorganize the go bindings Austin Clements
2012-05-04 18:43         ` Austin Clements
2012-05-05 11:15           ` Justus Winter
2012-05-09 11:15             ` [patch v2] update the go stuff to go 1 Justus Winter
2012-05-09 11:15               ` [PATCH 1/5] go: reorganize the go bindings Justus Winter
2012-05-09 11:15               ` [PATCH 2/5] go: set LDFLAGS to -lnotmuch in the packages source file Justus Winter
2012-05-09 11:15               ` [PATCH 3/5] go: update the addrlookup utility to go 1 Justus Winter
2012-05-09 11:15               ` [PATCH 4/5] go: update the build system Justus Winter
2012-05-09 11:15               ` [PATCH 5/5] go: format the souce code using gofmt Justus Winter
2012-05-09 18:10               ` [patch v2] update the go stuff to go 1 Austin Clements
2012-05-11 11:48               ` David Bremner
2012-04-30 20:14     ` [PATCH] go: Update to the current notmuch_database_find_message API Sebastien Binet
2012-05-04 11:56 ` David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1335815744-15258-3-git-send-email-4winter@informatik.uni-hamburg.de \
    --to=4winter@informatik.uni-hamburg.de \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).