From commits-return-1081-archive-asf-public=cust-asf.ponee.io@ponymail.incubator.apache.org Thu May 24 18:33:52 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D2669180636 for ; Thu, 24 May 2018 18:33:51 +0200 (CEST) Received: (qmail 67923 invoked by uid 500); 24 May 2018 16:33:51 -0000 Mailing-List: contact commits-help@ponymail.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ponymail.incubator.apache.org Delivered-To: mailing list commits@ponymail.incubator.apache.org Received: (qmail 67913 invoked by uid 99); 24 May 2018 16:33:51 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2018 16:33:50 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 6B21982AC5; Thu, 24 May 2018 16:33:50 +0000 (UTC) Date: Thu, 24 May 2018 16:33:50 +0000 To: "commits@ponymail.apache.org" Subject: [incubator-ponymail] branch master updated: Bug: import-mbox.py: imap code should not reset ES instance MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <152717963039.29221.12388262433847792396@gitbox.apache.org> From: sebb@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-ponymail X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 88bcc1d64ebad7c71093484c3a516eef94fdb73b X-Git-Newrev: ec0a76eb8b6836a3675800a65829a48fe90156f9 X-Git-Rev: ec0a76eb8b6836a3675800a65829a48fe90156f9 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 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.