Repository: incubator-ponymail Updated Branches: refs/heads/master c3ecabf2b -> 6d3eb87e8
Docn Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/6d3eb87e Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/6d3eb87e Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/6d3eb87e Branch: refs/heads/master Commit: 6d3eb87e8536b7fcc08300c9700a0921d71986c3 Parents: c3ecabf Author: Sebb <[email protected]> Authored: Fri Nov 4 15:14:14 2016 +0000 Committer: Sebb <[email protected]> Committed: Fri Nov 4 15:14:14 2016 +0000 ---------------------------------------------------------------------- tools/archiver.py | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/6d3eb87e/tools/archiver.py ---------------------------------------------------------------------- diff --git a/tools/archiver.py b/tools/archiver.py index 177045a..c9b1347 100755 --- a/tools/archiver.py +++ b/tools/archiver.py @@ -423,6 +423,7 @@ class Archiver(object): doc = self.es.get(index = self.dbname, doc_type = 'account', id = cid) if doc: oldrefs.append(cid) + # N.B. no index is supplied, so ES will generate one self.es.index( index=self.dbname, doc_type="notifications", @@ -457,6 +458,7 @@ class Archiver(object): # does the user want to be notified of indirect replies? if doc and 'preferences' in doc['_source'] and doc['_source']['preferences'].get('notifications') == 'indirect' and not cid in oldrefs: oldrefs.append(cid) + # N.B. no index is supplied, so ES will generate one self.es.index( index=self.dbname, consistency = self.consistency,
