MAIF / melusine

📧 Melusine: Use python to automatize your email processing workflow
https://maif.github.io/melusine
Other
352 stars 58 forks source link

Regex #21

Closed ghost closed 5 years ago

ghost commented 5 years ago

Improvement of build_historic.

Before that, if multiples patterns of transition were contiguous then the interval between the patterns (even if it is empty or typographic) were considered as an email so we had several empty emails into the conversation. Now the contiguous patterns of transition are concatenate even if there are typography between them. So there are no more empty (only typographic) email into the conversation.

Furthermore, if an email begins by a transition then it is handled (it wasn't handled before because the sort of the index was done only on the first index of the tuples).

Modification of the unit_test to check that improvement.

In addition, debug of the printer. We have to remove the \r before to use the print_color.