I'm using imaplib
to fetch emails for several accounts (Gmail, Yahoo..).
What is the best way to store emails locally (including attachments).
Is there any way to pickle
and store emails as file?
Is it possible to store emails as bytes and retrieve them
later as mail object?
I'll try to save mail in separate folder with each field in JSON file
and attachment as separate files, but I was wondering if there is a
native
way of doing it.