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

Extension for #10 #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Extension for #10 #11

wants to merge 3 commits into from

Conversation

halueda
Copy link
Contributor

@halueda halueda commented Apr 18, 2019

Add Body and NativeBody to dictionary to export them.

Add Body and NativeBody to dictionary to export them.
@Dijji
Copy link
Owner

Dijji commented May 8, 2019

This exports the properties, but does nothing to guarantee they will be in a readable format. For RTF messages, for example, the content would be completely unreadable.

Dijji

@halueda
Copy link
Contributor Author

halueda commented May 9, 2019

I should write the patch was WIP. Now I'm working and soon will update the branch.
Now, I understand there are three kinds of type: plain text, html and rtf.

I would like to re-generate original mail to refer and reply from Outlook.
I found the original header of a message is contained in a property but body in EntryId property is very limited length.

First of all, I'm trying to put Body, HTML, and RTFCompressed into the exported CVS file, to get body.
(I know maltipart containts are not recovered but it is not necessary for me...)

FYI, I'm also trying to convert CVS file to .eml file, which is most simple message file format, in python.
If you accept, I will contribute to this repository.

- plain text as utf8
- HTML text as utf8
- HTML text as base64 with part header
- RTFcompressed as base64 with part header

CSV looks fine.

HTML in base64 is rendered correctly with Outlook, if they are combined into eml format.
RTF is not checked yet.
Queues for body are always added to dict, but some queue can have no contents.
In such case, CSV header output failed.
Add dummy line for CSV header if the queue is empty.
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

Successfully merging this pull request may close these issues.

2 participants