You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2021/02/17 14:02:34 UTC

[incubator-ponymail-foal] branch master updated: OF: months are optional in pipermail summaries

This is an automated email from the ASF dual-hosted git repository.

humbedooh 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 4f86ff9  OF: months are optional in pipermail summaries
4f86ff9 is described below

commit 4f86ff9fbe013dd53dae8f3ce801ab7e5027a81e
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Wed Feb 17 15:02:29 2021 +0100

    OF: months are optional in pipermail summaries
---
 tools/import-mbox.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index 21ca9ba..dee1e18 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -655,7 +655,7 @@ if re.match(r"https?://", source):
                 "You need to specify a list ID with --lid when importing from Pipermail!"
             )
             sys.exit(-1)
-        ns = r"href=\"(\d+-[a-zA-Z]+\.txt(\.gz)?)\""
+        ns = r"href=\"(\d+(?:-[a-zA-Z]+)?\.txt(\.gz)?)\""
         qn = 0
         for mlist in re.finditer(ns, data):
             ml = mlist.group(1)