Skip to content

Commit

Permalink
Fix inconsistent message generation code in PGP/MIME signed mail
Browse files Browse the repository at this point in the history
  • Loading branch information
BjarniRunar committed Oct 14, 2014
1 parent 63d2d1a commit 1a328a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mailpile/mail_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ def _handle_multipart_signed(self, msg):
# The contents of signed parts has to stay unmodified in order to keep
# the signature intact per RFC1847 2.1, so we disable header wrapping.
# RDM: This isn't enough to completely preserve the part, but it helps.
# BRE: Disabled! We are using this to generate the stuff we sign, so
# we actually want the logic UNCHANGED.
return self._handle_multipart(msg)
# Disabled the following...
old_maxheaderlen = self._maxheaderlen
try:
self._maxheaderlen = 0
Expand Down

0 comments on commit 1a328a6

Please sign in to comment.