Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Thanks for feedback. That assumes I am downloading/syncing my emails from IMAP to local which I'm trying to avoid. But there might be no way around it; don't know yet. Commented Dec 17, 2014 at 17:53
  • This runs on the server where the mail messages are stored, not necessarily locally, but assumes you have shell access there. I tested om my own mailserver with a smallish IMAP folder with a couple of hundred messages. Commented Dec 17, 2014 at 17:58
  • @stef204: hadn't read your original question carefully enough, just recognised it as something I had done before, I thought... Commented Dec 17, 2014 at 18:05
  • I'm not sure I can have shell access to the server (I guess you mean via ssh); it's a on a shared hosted server. I do have admin rights so might be possible. I'll look into it. And let's see if can I can get additional feedback here as well. Tx. Commented Dec 17, 2014 at 18:32
  • This code snipped did not successfully strip any of the attachments out of the email I used for testing unfortunately. Commented Sep 23, 2024 at 23:34