diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-19 19:20:35 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-19 19:20:35 +0100 |
commit | 702898acc08bafe724b156a56c2e1dfa72f6e6d8 (patch) | |
tree | fd76a49cda6af5792b70f2ee953a36f65fa64367 /alot | |
parent | 34ab794e6427e77fe9e9c21ccb7c76f31406af1a (diff) |
fix: forgot decoding of subject in reply/forward
Diffstat (limited to 'alot')
-rw-r--r-- | alot/commands/envelope.py | 1 | ||||
-rw-r--r-- | alot/commands/thread.py | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index 7b189257..7d9a3232 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -55,7 +55,6 @@ class EnvelopeAttachCommand(Command): arguments=[ (['key'], {'help':'header to refine'})]) class EnvelopeRefineCommand(Command): - def __init__(self, key='', **kwargs): Command.__init__(self, **kwargs) self.key = key diff --git a/alot/commands/thread.py b/alot/commands/thread.py index add2b055..ed1d8766 100644 --- a/alot/commands/thread.py +++ b/alot/commands/thread.py @@ -16,6 +16,7 @@ from alot import widgets from alot import completion from alot import helper from alot.message import encode_header +from alot.message import decode_header MODE = 'thread' @@ -59,7 +60,7 @@ class ReplyCommand(Command): reply.attach(bodypart) # copy subject - subject = mail.get('Subject', '') + subject = decode_header(mail.get('Subject', '')) if not subject.startswith('Re:'): subject = 'Re: ' + subject reply['Subject'] = Header(subject.encode('utf-8'), 'UTF-8').encode() @@ -176,7 +177,7 @@ class ForwardCommand(Command): reply.attach(mail) # copy subject - subject = mail.get('Subject', '') + subject = decode_header(mail.get('Subject', '')) subject = 'Fwd: ' + subject reply['Subject'] = Header(subject.encode('utf-8'), 'UTF-8').encode() |