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 44a3f9dda3f0c0ad3330ef41c0c3611548c13681
parent a361598909d5897677bb0b15e6923e858b7f5d04
Author: Jaromil <jaromil@dyne.org>
Date:   Wed, 10 Apr 2013 12:17:11 +0000

hashing using account type

Diffstat:
Msrc/zlibs/accounts | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/zlibs/accounts b/src/zlibs/accounts @@ -207,7 +207,7 @@ ask_password() { return 0 elif [ -r $WORKDIR/keyring ]; then func "Looking for password in local keyring for $email on $host over $transport" - _hash=`print "$transport:$email:$host" | shasum | awk '{print $1}'` + _hash=`print "$type:$email:$host" | shasum | awk '{print $1}'` lookup="`lookup_secret ${_hash}`" { test "$lookup" = "" } || { act "Saved password found for $email ($transport on $host)" @@ -309,7 +309,7 @@ CREATE TABLE secrets EOF } # calculate the hash for this entry - _hash=`print "$transport:$email:$host" | shasum | awk '{print $1}'` + _hash=`print "$type:$email:$host" | shasum | awk '{print $1}'` # check if the entry is already present lookup="`lookup_secret ${_hash} rowid`" notice "Select the password to lock this keyring entry:"