This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 4fdc210 Fix Anomalous backslash in string
4fdc210 is described below
commit 4fdc210a3dc55afcdfca2464cbebb530426ac636
Author: Sebb <[email protected]>
AuthorDate: Sat May 15 00:04:09 2021 +0100
Fix Anomalous backslash in string
---
tools/import-mbox.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index 66b7a82..25ffaf0 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -739,8 +739,8 @@ elif re.match(r"imaps?://", source):
results = imap4.uid("fetch", uids, "(BODY[HEADER.FIELDS (MESSAGE-ID)])")
mail = {}
- uid_re = re.compile(b"^\d+ \(UID (\d+) BODY\[")
- mid_re = re.compile(b"^Message-ID:\s*(.*?)\s*$", re.I)
+ uid_re = re.compile(b"^\\d+ \\(UID (\\d+) BODY\\[")
+ mid_re = re.compile(b"^Message-ID:\\s*(.*?)\\s*$", re.I)
uid = None
for result in results[1]:
for line in result: