diff options
Diffstat (limited to 'src/mailman_pgp/workflows/mod_approval.py')
| -rw-r--r-- | src/mailman_pgp/workflows/mod_approval.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mailman_pgp/workflows/mod_approval.py b/src/mailman_pgp/workflows/mod_approval.py index 367f773..ea3369b 100644 --- a/src/mailman_pgp/workflows/mod_approval.py +++ b/src/mailman_pgp/workflows/mod_approval.py @@ -16,7 +16,6 @@ # this program. If not, see <http://www.gnu.org/licenses/>. """""" -import copy from mailman.email.message import UserNotification from mailman.interfaces.pending import IPendings @@ -25,7 +24,6 @@ from public import public from zope.component import getUtility from mailman_pgp.pgp.mime import MIMEWrapper -from mailman_pgp.utils.email import overwrite_message SUBSCRIPTION_MOD_REQUEST = """\ ---------- @@ -83,11 +81,8 @@ class ModeratorApprovalMixin: msg = UserNotification( self.mlist.owner_address, self.mlist.owner_address, subject, body, self.mlist.preferred_language) - out = copy.deepcopy(msg) - wrapped = MIMEWrapper(msg) - msg = wrapped.attach_keys(self.pubkey) - overwrite_message(msg, out) - out.send(self.mlist) + MIMEWrapper(msg).attach_keys(self.pubkey) + msg.send(self.mlist) raise StopIteration def _step_receive_mod_confirmation(self): |
