summaryrefslogtreecommitdiff
path: root/alot/db/envelope.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/db/envelope.py')
-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: