diff options
author | josch <j.schauer@email.de> | 2014-10-02 11:55:54 +0200 |
---|---|---|
committer | josch <j.schauer@email.de> | 2014-10-02 11:55:54 +0200 |
commit | dc236be51a1e136b7ddd01e2e02f7a7a29e9a9dc (patch) | |
tree | 8cb369e20ea8b5f2127470224ebd5ed4293c4d75 /alot/helper.py | |
parent | 0025259aa135ab0ab4bdf71e089744e1d0e76215 (diff) |
Fix parsing of mailto addresses
- the key has been capitalized so compare with "Body" and not "body"
- comparison between strings is better done with == than with "is"
Diffstat (limited to 'alot/helper.py')
-rw-r--r-- | alot/helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/helper.py b/alot/helper.py index 2257ee8c..040467a6 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -576,7 +576,7 @@ def parse_mailto(mailto_str): for s in parms_str.split('&'): key, value = s.partition('=')[::2] key = key.capitalize() - if key is 'body': + if key == 'Body': body = urllib.unquote(value) elif value: headers[key] = [urllib.unquote(value)] |