datactive / bigbang

Scientific analysis of collaborative communities
http://datactive.github.io/bigbang/
MIT License
149 stars 52 forks source link

Handle message in LISTSERV archive with no date #457

Closed Christovis closed 3 years ago

Christovis commented 3 years ago

Some messages in a LISTSERV archive may have no date. This can be solved by e.g. adding a condition to ListservMessage.create_message_id() as:

if date is None:
    date = 'None'

The handling of such corner case should be included in tests/unit/test_listserv.py as ListservMessage.create_message_id() is only called in ListservMessage.to_mbox()

Christovis commented 3 years ago

Fixed with #458