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

Please return parsed headers also in extract #19

Open
KrishnaPG opened this issue Dec 21, 2024 · 0 comments
Open

Please return parsed headers also in extract #19

KrishnaPG opened this issue Dec 21, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@KrishnaPG
Copy link

Thank you for sharing this work. This is helpful.

Currently, the extract method returns LetterparserMail which holds few fields along with the html/text.

To get all the headers we have to make additional call parse, which the extract method already does internally.

Could you please return the parsed headers also inside the LetterparserMail?

When we need to process the html or text of the parsed mail (or save them as a file onto disk), it is very helpful to have access to all the headers (such as threadId, messageId etc. optional headers, which gives more context to the message).

Kindly consider including the parsed headers as a field into the return value of extract method. Thank you.

@mat-sz mat-sz self-assigned this Jan 2, 2025
@mat-sz mat-sz added the enhancement New feature or request label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants