diff options
Diffstat (limited to 'alot/mail/envelope.py')
-rw-r--r-- | alot/mail/envelope.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/mail/envelope.py b/alot/mail/envelope.py index 0a616a57..bd214568 100644 --- a/alot/mail/envelope.py +++ b/alot/mail/envelope.py @@ -456,7 +456,7 @@ class Envelope: to, _, hfields = mailto.partition('?') to = unquote(to) if to: - headers['To'] = [to] + headers[HDR.TO] = to for hfield in hfields.split('&'): key, _, value = hfield.partition('=') @@ -469,6 +469,6 @@ class Envelope: if key == 'Body': body = value elif key in cls._MAILTO_SAFE_HEADERS: - headers[key] = [value] + headers[key] = value return cls(headers = headers, bodytext = body) |