tierpod / dmarc-report-converter

Convert dmarc reports from xml to human-readable formats
MIT License
222 stars 25 forks source link

Support importing .pst files #44

Open eloydegen opened 3 months ago

eloydegen commented 3 months ago

'Personal Storage Table' is a Microsoft-proprietary format, which is commonly used when exporting a mailbox from Microsoft Outlook. I used readpst from pst-utils to extract the .xml.gz files which could be imported here, but it would be nice if it was directly integrated here. Seems a Go implementation exists here, but I am not sure if it supports extracting the mail attachments to files in a directory: https://github.com/mooijtech/go-pst

Edit: seems like it supports attachments!

tierpod commented 3 months ago

Hello, thank you for the report.

It's interesting. I have no MS Outlook around me, could you provide pst file for testing purposes? Of course, without any sensitive information.

For now, you can try configure IMAP to connect to MS Outlook server and download attachments via IMAP (input.imap section in configuration file). I haven't tried it though.

eloydegen commented 2 months ago

It's interesting. I have no MS Outlook around me, could you provide pst file for testing purposes? Of course, without any sensitive information.

I'll look into providing that!

I read about the IMAP option, but in my current situation it is not possible to do that, due to multi-factor authentication that uses a graphical interface with Oauth2. I'm not even sure if that is a feasible and good idea to implement on a server which essentially acts as an IMAP client. The pst file option is essentially a workaround :)