Reducing Memory Consumption of Emails
Reduced memory consumption of supported Email formats
GroupDocs.Metadata API allows working allows working with saved email messages with less memory consumption. Please note that the EmlFormat and OutlookMessage classes implement the Closeable interface and it's necessary to call the close() method when you're done working with the instance.
Following code snippets use less memory while working with email formats.
If you are loading an email message from a stream, it's up to you to close the stream when the file is not needed anymore.
The same rule works if you are saving the output file into a stream.