From 68ded217f72722bb06453b6c36415a8ba2a5864f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 28 May 1996 19:52:40 +0000 Subject: [PATCH] minor fix to mime header regex --Sjoerd --- Lib/mimify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/mimify.py b/Lib/mimify.py index 15821997f4e..3f41de4cc83 100755 --- a/Lib/mimify.py +++ b/Lib/mimify.py @@ -239,7 +239,7 @@ def mime_encode(line, header): line = line[i:] return newline + line -mime_header = regex.compile('\\([ \t(]\\)\\([-a-zA-Z0-9_+]*[\240-\377][-a-zA-Z0-9_+\240-\377]*\\)\\([ \t)]\\|$\\)') +mime_header = regex.compile('\\([ \t(]\\|^\\)\\([-a-zA-Z0-9_+]*[\240-\377][-a-zA-Z0-9_+\240-\377]*\\)\\([ \t)]\\|$\\)') def mime_encode_header(line): '''Code a single header line as quoted-printable.'''