Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base64 encoded emails #14

Closed
lydiastepanek opened this issue May 25, 2023 · 2 comments
Closed

base64 encoded emails #14

lydiastepanek opened this issue May 25, 2023 · 2 comments

Comments

@lydiastepanek
Copy link

Hello, I'm using your library in my side project, IsThisPhishy.io. (For context, I wrote a blog post where I mention using your library to parse forwarded emails: https://www.lydiaoncybersecurity.com/launching-isthisphishy/ .)

I noticed that your library is unable to parse base64 encoded emails, so it won't work on Outlook emails. Any plans to add support for this?

@eliottvincent
Copy link
Member

Hey Lydia, cool project!

This library expects an already decoded email, so base64 won't work indeed. I highly suggest using something like https://github.com/nodemailer/mailparser first, in order to parse the emails you receive on help@isthisphishy.io.

This'll clean a lot of stuff (including base64 encoded emails). Then you can pass the result in new EmailForwardParser().read(MY_EMAIL_STRING) 😉

@lydiastepanek
Copy link
Author

oh gotcha, that worked thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants