From 527f123391a0c3b273f4dd02a04eb0dd49620e9f Mon Sep 17 00:00:00 2001 From: perennate Date: Fri, 9 Aug 2013 14:43:56 +0800 Subject: [PATCH] Fix format errors, also do deliver email for domain that should be encrypted even if the recipient doesn't have a key. --- gpg-mailgate.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gpg-mailgate.py b/gpg-mailgate.py index ad10930..eb1c8c7 100755 --- a/gpg-mailgate.py +++ b/gpg-mailgate.py @@ -84,6 +84,8 @@ for enc in encrypted_to_addrs: gpg_to.append( (enc, enc) ) elif cfg.has_key('keymap') and cfg['keymap'].has_key(enc): gpg_to.append( (enc, cfg['keymap'][enc]) ) + else: + ungpg_to.append(enc); for to in to_addrs: domain = to.split('@')[1] @@ -92,6 +94,8 @@ for to in to_addrs: gpg_to.append( (to, to) ) elif cfg.has_key('keymap') and cfg['keymap'].has_key(to): gpg_to.append( (to, cfg['keymap'][to]) ) + else: + ungpg_to.append(to); else: ungpg_to.append(to)