You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2021/06/04 13:15:21 UTC
[incubator-ponymail-foal] branch master updated: Magic number
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 b2092b5 Magic number
b2092b5 is described below
commit b2092b5fa2bad0bd5628640978dde8f833bf2658
Author: Sebb <se...@apache.org>
AuthorDate: Fri Jun 4 14:15:09 2021 +0100
Magic number
---
tools/import-mbox.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index 25ffaf0..cb0cde6 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -46,6 +46,7 @@ else:
from . import archiver
from .plugins.elastic import Elastic
+TIMEOUT_DEFAULT = 600
goodies = 0
baddies = 0
duplicates: dict = {} # detect if mid is re-used this run
@@ -73,7 +74,7 @@ interactive = False
extension = ".mbox"
piperWeirdness = False
resendTo = None
-timeout = 600
+timeout = TIMEOUT_DEFAULT
fromFilter = None
dedup = False
dedupped = 0
@@ -521,7 +522,7 @@ parser.add_argument(
dest="timeout",
type=int,
nargs=1,
- help="Optional timeout in secs for importing an mbox/maildir file (default is 600 seconds)",
+ help="Optional timeout in secs for importing an mbox/maildir file (default is %d seconds)" % TIMEOUT_DEFAULT,
)
parser.add_argument(
"--filter",