sbp opened a new pull request #43: URL: https://github.com/apache/incubator-ponymail-foal/pull/43
This PR enables extra information about threads to be stored in elastic at archival time, rather than at UI time. In other words, instead of getting information about threads dynamically when people view a Foal powered website, information about threads is added to a message as soon as it is archived. This mode is optional, and is enabled by setting `archiver.threadinfo` to `true` in the configuration file. This PR includes a script called `rethread.py` which can add the information to an existing database. This means that an email archive which does not currently have archival time thread properties can be updated as a whole before changing how the archiver works. One drawback to this approach is that if messages are received out of order then this may confuse the archiver. The `rethread.py` script can be used to fix such problems, but it does scan and modify the entire database to do so. It may be possible to have the script more selectively and carefully fix problems, but there is probably no getting around doing a full rescan. The properties added to archived documents are `forum`, `previous`, `thread`, and `top`. The `forum` property is the email address of the mailing list, included as a handy alternative to `list_raw`. The `previous` property points to the mbox ID of either the parent message in the thread or, if the message is already the top of the thread, the top of the previous thread. The `thread` property points to the top of the current thread, which will be the same mbox ID as the current message if the current message is itself the top of the current thread. And the `top` property is a boolean indicating whether or not a message is the top of the current thread. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
