[PATCH 2/2] cli: clean up user address matching code in guess_from_received_header()

2012-05-11 Thread Jani Nikula
Get rid of user address matching code duplication in guess_from_received_header() by using the new address matching helpers. No functional changes. Signed-off-by: Jani Nikula --- notmuch-reply.c | 64 +-- 1 file changed, 19 insertions(+),

[PATCH 1/2] cli: add user address matching helpers for notmuch reply

2012-05-11 Thread Jani Nikula
Add a multi-purpose address_match() function for matching strings against user's configured primary and other email addresses. Add thin wrappers user_address_in_string() and string_in_user_address() for ease of use, and also convert existing address_is_users() to wrapper for the same. No

[PATCH 2/2] test: add tests for notmuch reply From guessing

2012-05-11 Thread Jani Nikula
Add tests for picking up user's From address from fallback headers Envelope-To, X-Original-To, and Delivered-To. Signed-off-by: Jani Nikula --- test/reply | 55 +++ 1 file changed, 55 insertions(+) diff --git a/test/reply b/test/reply index

[PATCH 1/2] cli: also use Delivered-To header to figure out the reply from address

2012-05-11 Thread Jani Nikula
Add another fallback header Delivered-To for guessing the user's from address for notmuch reply before using the Received headers. Apparently some MTAs use Delivered-To instead of X-Original-To (which already exists as a fallback). Reported-by: Michael Hudson-Doyle Signed-off-by: Jani Nikula

emacs complains about encoding?

2012-05-11 Thread David Belohrad
Dear all, i've just yesterday pulled from git recent version of notmuch and started to use it. With respect to previous version (~2months old?) I have now problem, that when I receive from somebody an email using 'whatever' (understood uknown) encoding, the email is in emacs displayed correctly.

[patch v2] update the go stuff to go 1

2012-05-11 Thread David Bremner
Justus Winter <4winter at informatik.uni-hamburg.de> writes: > This is an updated version of my patch series to update the go > bindings and the notmuch-addrlookup utility to go 1. It is meant to be > applied uppon [0]. > Pushed to release and master, d

emacs complains about encoding?

2012-05-11 Thread David Belohrad
Dear all, i've just yesterday pulled from git recent version of notmuch and started to use it. With respect to previous version (~2months old?) I have now problem, that when I receive from somebody an email using 'whatever' (understood uknown) encoding, the email is in emacs displayed correctly.

Re: Last minute fixes to the go bindings

2012-05-11 Thread David Bremner
Justus Winter 4win...@informatik.uni-hamburg.de writes: Hi everyone :) this is a small patch series that I'd like to see included in 0.13. pushed to release and master ___ notmuch mailing list notmuch@notmuchmail.org

Re: [patch v2] update the go stuff to go 1

2012-05-11 Thread David Bremner
Justus Winter 4win...@informatik.uni-hamburg.de writes: This is an updated version of my patch series to update the go bindings and the notmuch-addrlookup utility to go 1. It is meant to be applied uppon [0]. Pushed to release and master, d ___

[PATCH 1/2] cli: also use Delivered-To header to figure out the reply from address

2012-05-11 Thread Jani Nikula
Add another fallback header Delivered-To for guessing the user's from address for notmuch reply before using the Received headers. Apparently some MTAs use Delivered-To instead of X-Original-To (which already exists as a fallback). Reported-by: Michael Hudson-Doyle michael.hud...@canonical.com

[PATCH 2/2] test: add tests for notmuch reply From guessing

2012-05-11 Thread Jani Nikula
Add tests for picking up user's From address from fallback headers Envelope-To, X-Original-To, and Delivered-To. Signed-off-by: Jani Nikula j...@nikula.org --- test/reply | 55 +++ 1 file changed, 55 insertions(+) diff --git a/test/reply

[PATCH 1/2] cli: add user address matching helpers for notmuch reply

2012-05-11 Thread Jani Nikula
Add a multi-purpose address_match() function for matching strings against user's configured primary and other email addresses. Add thin wrappers user_address_in_string() and string_in_user_address() for ease of use, and also convert existing address_is_users() to wrapper for the same. No

[PATCH 2/2] cli: clean up user address matching code in guess_from_received_header()

2012-05-11 Thread Jani Nikula
Get rid of user address matching code duplication in guess_from_received_header() by using the new address matching helpers. No functional changes. Signed-off-by: Jani Nikula j...@nikula.org --- notmuch-reply.c | 64 +-- 1 file changed, 19

Re: [PATCH 1/2] cli: also use Delivered-To header to figure out the reply from address

2012-05-11 Thread Tomi Ollila
On Fri, May 11 2012, Jani Nikula j...@nikula.org wrote: Add another fallback header Delivered-To for guessing the user's from address for notmuch reply before using the Received headers. Apparently some MTAs use Delivered-To instead of X-Original-To (which already exists as a fallback).