summaryrefslogtreecommitdiff
path: root/alot/commands/envelope.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-05-13 12:46:09 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2012-05-13 12:46:09 +0100
commit54ff6080b6ea0f3ed733c00fbb38f1d2bb066f14 (patch)
tree5d3867cadcaaefcfb66d337fd83109a7664618d0 /alot/commands/envelope.py
parent3ca453f6313ea328a3c465630b260b13eba6a097 (diff)
don't look up key if togglesign to unset sign bit
In case one uses `togglesign foo` on an envelope with sign bit set, remove sign bit regardless of foo matching a key
Diffstat (limited to 'alot/commands/envelope.py')
-rw-r--r--alot/commands/envelope.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index 44e1f686..032248f7 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -368,7 +368,7 @@ class SignCommand(Command):
envelope.sign = sign
# try to find key if hint given as parameter
- if self.action in ['sign', 'toggle']:
+ if sign:
if len(self.keyid) > 0:
keyid = str(' '.join(self.keyid))
try: