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

Method to return body text in case of html email #99

Open
rawadmarji opened this issue Dec 21, 2022 · 7 comments
Open

Method to return body text in case of html email #99

rawadmarji opened this issue Dec 21, 2022 · 7 comments

Comments

@rawadmarji
Copy link

getBodyPrefix is not returning the full body

@rawadmarji rawadmarji changed the title getBodyPrefix is not returning the full body Method to return body text in case of html email Dec 21, 2022
@rawadmarji
Copy link
Author

Method to return body text in case of html email #99

@mooijtech
Copy link

getBody() returns the plaintext body, if available.
Otherwise you can use getBodyHTML with JSoup (https://jsoup.org/) to convert HTML to plaintext.

@rawadmarji
Copy link
Author

just a final question when a new release will be delivered

@mooijtech
Copy link

@rawadmarji A new release containing what functionality?

@rawadmarji
Copy link
Author

The fix of seek method when using byte array in order to not download file and save it on local disk

@mooijtech
Copy link

What is the issue you are running into specifically?

If you want to read PST files without fully downloading to disk beforehand you will find massive network performance overhead, for example 10 seconds compared to 5 minutes.

The trick is to run multiple "S3 Byte-Range Fetches" in parallel (https://docs.aws.amazon.com/whitepapers/latest/s3-optimizing-performance-best-practices/use-byte-range-fetches.html).

As far as I know java-libpst is not designed with this use case in mind. It's possible though.

The fastest way to solve your issue would be to download locally. Even better, if you can move your code to where the file is located the whole network issue would be solved.

Worth mentioning is mounting an S3 bucket using FUSE locally but I have not tried it personally so don't know how it performs (see https://github.com/s3fs-fuse/s3fs-fuse).

@rawadmarji
Copy link
Author

but the issue is currently fixed in develop branch

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

2 participants