ePADD / epadd

ePADD is a software package developed by Stanford University's Special Collections & University Archives that supports archival processes around the appraisal, ingest, processing, discovery, and delivery of email archives.
https://www.epaddproject.org
112 stars 24 forks source link

Fix for issue #414 (Emails in Mbox format with to or from fields cont… #415

Closed jfarwer closed 2 years ago

jfarwer commented 3 years ago

…aining only names but no email addresses appear in the list of correspondents after importing an Mbox file but are missing after restarting ePADD).

When ePADD is restarted after importing an Mbox file, the Contact objects (/epadd/src/java/edu/stanford/muse/AddressBookManager/Contact.java) are deserialised from the disk. In readObjectFromStream email addresses for a contact are added to its list of emails by looking at lines containing an ‘@’ (a contact can have more than one email address). If such a line is not found, then the list of emails will be empty. The fix adds the first name found for the contact to the list of emails if no ‘@’ has been found. The first found name and (the only) email are then identical.