aboutsummaryrefslogtreecommitdiff
path: root/firma
diff options
context:
space:
mode:
authorrhatto <rhatto>2006-10-09 14:01:15 +0000
committerrhatto <rhatto>2006-10-09 14:01:15 +0000
commitb6d24c61907994e13763af19581c48ebffde82f3 (patch)
tree5782bb433e41ddac18d36737d271e4b776d0542a /firma
parent65fe546d179bcdd85626270d0b9af7732f339c17 (diff)
downloadfirma-b6d24c61907994e13763af19581c48ebffde82f3.tar.gz
firma-b6d24c61907994e13763af19581c48ebffde82f3.tar.bz2
small fixes
Diffstat (limited to 'firma')
-rwxr-xr-xfirma4
1 files changed, 1 insertions, 3 deletions
diff --git a/firma b/firma
index d003c9b..51edd34 100755
--- a/firma
+++ b/firma
@@ -1155,7 +1155,7 @@ function CheckValidEmail {
# 1 if not
#-------------------------------------------------------------
- if ! echo $2 | grep -q '[^@]\+@[^@]\+'; then
+ if ! echo $1 | grep -q '[^@]\+@[^@]\+'; then
return 1
else
return 0
@@ -1177,8 +1177,6 @@ function UnsubscribeUser {
local key
local -i return_code=0
local keyid="$($GPG_LIST_KEYS --with-fingerprint $1 2> /dev/null | grep ^fpr | cut -d : -f 10)"
- local uid_count="$($GPG_LIST_KEYS --fixed-list-mode $keyid 2> /dev/null | grep ^uid | wc -l)"
- local chosen_uid_number="$($GPG_LIST_KEYS --fixed-list-mode $keyid 2> /dev/null | grep ^uid | grep -ni "$1" | cut -d : -f 1)"
if [ "$1" == "$LIST_ADDRESS" ]; then
# check if user is trying to unsubscribe the list key