Download all webmails idea

I need to download only once hundreds of emails from webmail. I would like to save these as webarchives. How do i automate clicking to next email link in web page? That link name changes every time, it is subject of next email.

How to save attachments?

Is there a way to download webpage without Safari, and resulting page is single file? Similar than webarchive with pictures.

Is there any ready applications that does this? I think if somebody would write generic “download webmails” app/applescript, it would be very popular. It would be even better if it could be teached where in your webmail is From… fields and it would import all mails to Mail.app.

Hi cirno,

seems to be an interesting but a little bit complicated subject. I am afraid you will need a cutom solution for every webmail provider. I did some tests with my yahoo account. Parsing the html to get the ‘Next’ link seems not a big problem and I managed to write a little script that separates the email (html) content from the rest of the page (which I asume you don’t want to store) and fixes it so it can be displayed (and saved) separately. But there are more problems:

  • the images and attachments are not embedded - they link to another html that provides a download button - this has to be altered before creating a web-archive (is it possible to embed non-image/-text attachments in a web-archive at all? - i guess it has to be encoded)
  • the webarchive format saving in Safari seems not be scriptable directly (I think I read sth. about saving webarchives here recently?)

So I first would think about this: Wouldn’t it be a much easier solution for you archiving job to write a script that forwards the emails to an other (non-web-) email account?

D.