summaryrefslogtreecommitdiff
path: root/service/pixelated
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-02-13 17:10:00 -0200
committerBruno Wagner <bwgpro@gmail.com>2015-02-13 18:42:26 -0200
commit9c77d32c0019cd8afc16d2050f7521282607979a (patch)
tree32bdd3f98063d252055e9daf5aae1a7197af3117 /service/pixelated
parent396a0ecef3d69cd342dc60f58cc2ba4e9f5c4600 (diff)
Charset detection will not break if there is extra information in the charset field
Diffstat (limited to 'service/pixelated')
-rw-r--r--service/pixelated/adapter/model/mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/adapter/model/mail.py b/service/pixelated/adapter/model/mail.py
index b2b0986a..3522f695 100644
--- a/service/pixelated/adapter/model/mail.py
+++ b/service/pixelated/adapter/model/mail.py
@@ -82,7 +82,7 @@ class Mail(object):
def _parse_charset_header(self, charset_header, default_charset='utf-8'):
try:
- return re.compile('.*charset=(.*)').match(charset_header).group(1)
+ return re.compile('.*charset=(.*);').match(charset_header).group(1)
except:
return default_charset