ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [incubator-ponymail] branch master updated: Bug: import-mbox.py: imap code should not reset ES instance
Date Thu, 24 May 2018 16:33:50 GMT
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.git


The following commit(s) were added to refs/heads/master by this push:
     new ec0a76e  Bug: import-mbox.py: imap code should not reset ES instance
ec0a76e is described below

commit ec0a76eb8b6836a3675800a65829a48fe90156f9
Author: Sebb <sebb@apache.org>
AuthorDate: Thu May 24 17:33:49 2018 +0100

    Bug: import-mbox.py: imap code should not reset ES instance
    
    This fixes #460
---
 CHANGELOG.md         | 1 +
 tools/import-mbox.py | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0517bec..60aae14 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,5 @@
 ## Changes in 0.11-SNAPSHOT
+- Bug: import-mbox.py: imap code should not reset ES instance (#460)
 - Bug: tmpname used before it has been set up in import-mbox (#458)
 - Bug: variable 'mid' used before assignment in archiver.py (#459)
 - Enh: remove duplicated code in tools scripts by using elastic.py module (#456)
diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index 8f59ec3..93356e0 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -573,7 +573,6 @@ elif re.match(r"imaps?://", source):
 
     # fetch message-id => _id pairs from elasticsearch
 
-    es = Elasticsearch()
     result = es.search(scroll = '5m', 
         body = {
             'size': 1024, 

-- 
To stop receiving notification emails like this one, please contact
sebb@apache.org.

Mime
View raw message