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 f7be819 Bug: copy-list.py does not work f7be819 is described below commit f7be819146bdcfe1c19c1e3ada134d7a2365d47f Author: Sebb <s...@apache.org> AuthorDate: Thu May 17 14:50:25 2018 +0100 Bug: copy-list.py does not work This fixes #450 --- CHANGELOG.md | 1 + tools/copy-list.py | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f4b544a..457bfa9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ ## Changes in 0.11-SNAPSHOT +- Bug: copy-list.py does not work (#450) - Bug: unnecessary test (will always succeed) in copy-list.py (#451) - Bug: archiver ignores failures if dumponfail is not defined (#449) - Enh: make MboxoFactory optional (#442) diff --git a/tools/copy-list.py b/tools/copy-list.py index 44ed332..698afe0 100755 --- a/tools/copy-list.py +++ b/tools/copy-list.py @@ -155,10 +155,11 @@ while (scroll_size > 0): source = es.get(index = dbname, doc_type = 'mbox_source', id = doc) except: print("Source for %s not found, hmm..." % doc) - if targetLID: - if not newdb: - body['list_raw'] = targetLID - body['list'] = targetLID + if targetLID != sourceLID: + doc = hit['_id'].replace(sourceLID,targetLID) + body['_source']['mid'] = doc + body['_source']['list_raw'] = targetLID + body['_source']['list'] = targetLID js_arr.append({ '_op_type': 'index', '_index': newdb if newdb else dbname, -- To stop receiving notification emails like this one, please contact s...@apache.org.