On 23/02/17 18:57, Chris Green wrote:
On Thu, Feb 23, 2017 at 04:04:24PM +0000, Mark Rogers wrote:
Are there any tools to set up an automated IMAP client?
By which I mean I want to set up some software on a headless Linux box which connects to an account on an IMAP server elsewhere. It could then be configured to perform actions on received email, such as filter it, move it to folders, forward it to people based on various criteria, etc.
It seems like the sort of thing that must exist but I'm clearly picking the wrong things to Google for...
In the days before always on internet connections there were lots of utilities for doing this sort of thing, they've rather died out now.
I'm *sure* I recently came across this ability in some mailing list software I was reading about but I can't remember where now. If I find it I'll report back.
I thought the answer was going to be "Use Mutt". It still could be, but then I found this about filtering with Mutt, which may be of help...
http://mutt.postle.net/filtering/
Of course, you could install a mail server like exim or one of its alternatives, get all the mail onto the mail server and then use the filtering capabilities of the mail server to shift stuff around.
Another alternative is to do it on whatever's providing the imap server for you. For example if you were using gmail to receive your mail, it's possible to write rules on gmail to move them to where you want them to be.
Steve