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

Feature Request: Surface the filename for embedded files #34

Open
leighmcculloch opened this issue May 1, 2021 · 0 comments
Open

Feature Request: Surface the filename for embedded files #34

leighmcculloch opened this issue May 1, 2021 · 0 comments

Comments

@leighmcculloch
Copy link

Embedded files store their filename as a parameter of the content-type and content-disposition. It would be handy if the parsemail package supported extracting them conveniently.

It's not particularly difficult to do with the mime stdlib package, so I can definitely understand if this is out-of-scope of this package and would be considered scope creep.

If the feature would be appreciated I'd be happy to contribute.

An example of how I'd implement would be something like this:
https://github.com/leighmcculloch/emlx/blob/487fb6c539137ec1d4b0c91bc2cb0118db7b4be3/main.go#L72-L78

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

No branches or pull requests

1 participant