summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorpacien <pacien.trangirard@pacien.net>2019-11-23 21:55:53 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2019-11-23 22:04:44 +0000
commit59227e42199066ee5759abf681aff468ed05a4c8 (patch)
tree3057285ecbbca7ac3811c4e67956b81ec6fc8bea /alot
parent50c0b5ed7a3c23eb17fcbda3fc6151691311502a (diff)
envelope: fix header key:value parsing regression
Fixes an issue introduced in 45829f7956716638fe77989a50eb87d3ea34cace which made header values containing ':' break the parser.
Diffstat (limited to 'alot')
-rw-r--r--alot/db/envelope.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/db/envelope.py b/alot/db/envelope.py
index 1852bae1..7e08289c 100644
--- a/alot/db/envelope.py
+++ b/alot/db/envelope.py
@@ -315,7 +315,7 @@ class Envelope:
# locally, lines are separated by a simple LF, not CRLF
# we decode the edited text ourselves here as
# email.message_from_file can't deal with raw utf8 header values
- headerRe = re.compile(r'^(?P<k>.+):(?P<v>(.|\n[ \t\r\f\v])+)$',
+ headerRe = re.compile(r'^(?P<k>.+?):(?P<v>(.|\n[ \t\r\f\v])+)$',
re.MULTILINE)
for header in headerRe.finditer(raw):
if header.start() > headerEndPos + 1: