I write an AppleScript to backup all my emails. A lot of emails I have already saved as .eml files on my local hard drive and deleted them from the server. Is there a way to load the .eml files with AppleScript as message to get the date sent, subject etc. of them?
Share
How about something like this :
The body is a little harder since you need to decide if you only want the emails body or also all the previous emails that are embedded into the body. The following gets the body of my test email.
Make sure you watch out for the encoding of the file if you use other characters.