jaromail

a commandline tool to easily and privately handle your e-mail
git clone git://parazyd.org/jaromail.git
Log | Files | Refs | Submodules | README

commit 46879928b148f37b160cdee7b7562d9b5f1d622f
parent bd6a83a0f3f5e6e920957c83e987a5760f09b5a7
Author: Jaromil <jaromil@dyne.org>
Date:   Sun,  2 Sep 2012 18:03:14 +0200

fix to addressbook learning on sent emails and multiple recipients

Diffstat:
Msrc/zlibs/addressbook | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/zlibs/addressbook b/src/zlibs/addressbook @@ -148,15 +148,15 @@ learn() { ;; recipient) # complex: more addresses in To: and Cc: head="`cat | ${WORKDIR}/bin/fetchaddr -x To: -a`" - for h in ${head}; do - email="${h[(ws:,:)1]} )" - name="${h[(ws:,:)2]} )" + for h in ${(f)head}; do + email="${h[(ws:,:)1]}" + name="${h[(ws:,:)2]}" insert_address "$email" "$name" done head="`cat | ${WORKDIR}/bin/fetchaddr -x Cc: -a`" - for h in ${head}; do - email="${h[(ws:,:)1]} )" - name="${h[(ws:,:)2]} )" + for h in ${(f)head}; do + email="${h[(ws:,:)1]}" + name="${h[(ws:,:)2]}" insert_address "$email" "$name" done return 0