Permalink
Browse files

Changed EMAILADDR to a tuple for multiple-email support; changed == t…

…o in on relevant line for this change.
  • Loading branch information...
1 parent 5d4318e commit 575f421b110a0b7cfb62d4d5a8e43cd9bdd7edd0 @ianmcorvidae ianmcorvidae committed with Mar 31, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 verify_hashcash.py
View
4 verify_hashcash.py 100755 → 100644
@@ -7,7 +7,7 @@
# Change the DB path in COMMAND as needed, and change your email address
COMMAND="hashcash -cdb '%s' -r '%s' -f ~/.mutt/hashcash.db '%s'"
-EMAILADDR="aaron.toponce@gmail.com"
+EMAILADDR=("aaron.toponce@gmail.com")
tokens = []
token_status = []
@@ -29,7 +29,7 @@
if tokens:
token_status.append("[-- Begin Hashcash output --]")
for hc_token in tokens:
- if hc_token.split(":")[3] == EMAILADDR:
+ if hc_token.split(":")[3] in EMAILADDR:
hc_bits = hc_token.split(":")[1]
hc_resource = hc_token.split(":")[3]
p = subprocess.Popen(COMMAND % (hc_bits,hc_resource,hc_token),

0 comments on commit 575f421

Please sign in to comment.