Skip to content

Commit

Permalink
Issue Arceliar#14: Make replies look normal
Browse files Browse the repository at this point in the history
For normal replies, the quoted text (prepended lines of "> ") get put at the end.
I've removed this functionality.
  • Loading branch information
jimmysong committed May 30, 2014
1 parent a5e0773 commit 99537d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion outgoing.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ def process_message(self, peer, mailfrom, rcpttos, data):
toAddress = msg['To']
fromAddress = msg['From']
subject = u' '.join(unicode(t[0], t[1] or 'UTF-8') for t in email.header.decode_header(msg['Subject'])).encode('UTF-8')
body = self._bmformat(msg)
if msg.is_multipart():
body = self._bmformat(msg)
else:
body = msg.get_payload()

#Make sure we don't send an actually blank subject or body--this can cause problems.
if not subject:
Expand Down

0 comments on commit 99537d5

Please sign in to comment.