How to use threadingMails.py - lmichel/vo-grimoire GitHub Wiki

How to use threadingMails.py

This module is an implementation of the jwz mail threading algorithm. When you call it with a mbox perceval repository, it will build all the threads of this archive.

Methods

  • pruneContainer(container)
  • thread(messageList)
  • printSubjectTable(subs)
  • runThread(repo)

Inputs

You will need to call the method with one parameter : the mbox perceval repository in order for the module to use the repo.fetch() in order to get all the mails

Output

This module will build the threads and store it into a .json

How to use it

Just create in advance the mbox perceval repository and call runThread(repo)