diff options
Diffstat (limited to 'src/mailman_pgp/mta/personalized.py')
| -rw-r--r-- | src/mailman_pgp/mta/personalized.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mailman_pgp/mta/personalized.py b/src/mailman_pgp/mta/personalized.py index a89301f..bd50c70 100644 --- a/src/mailman_pgp/mta/personalized.py +++ b/src/mailman_pgp/mta/personalized.py @@ -16,6 +16,8 @@ # this program. If not, see <http://www.gnu.org/licenses/>. """PGP enabled IndividualDelivery.""" +import copy + from mailman.mta.base import IndividualDelivery from mailman.mta.decorating import DecoratingMixin from mailman.mta.personalized import PersonalizedMixin @@ -67,6 +69,8 @@ class PGPIndividualMixin: else: out = wrapped.sign(pgp_list.key) else: + # Definitely encrypt here, the case where we don't encrypt or sign + # is handled above at the start of the func. out = wrapped.encrypt(key, pgp_list.pubkey) overwrite_message(out, msg) |
