]> git.notmuchmail.org Git - notmuch/commit
cli: add user address matching helpers for notmuch reply
authorJani Nikula <jani@nikula.org>
Fri, 11 May 2012 14:33:04 +0000 (17:33 +0300)
committerDavid Bremner <bremner@debian.org>
Thu, 24 May 2012 01:47:51 +0000 (22:47 -0300)
commite03ed64c8f3365e9ec53ec665eb88feb1b7e561c
tree14a259763b84abae16e1c24bf988f7005a23ed86
parent8c123d0da61244b90e2b45bf6334e611ddd9a5d3
cli: add user address matching helpers for notmuch reply

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 functional changes.

Signed-off-by: Jani Nikula <jani@nikula.org>
notmuch-reply.c