You are not logged in.

#1 2012-04-18 16:12:58

Paloran
Member
Registered: 2011-10-17
Posts: 24

Mutt Imap Idle and Mail Filtering

Hi,
for some days I'm using Mutt. My Mails are on an Imap Server that supports Imap Idle, which is quite nice. I access them through Mutt's native Imap Support. Now I'd like to filter my Mails. I've found some applications that can do it: Procmail, imapfilter and getmail. But there are some problems: procmail needs fetchmail, and I've read a lot of creepy things about mails that aren't being delivered and other bugs regarding fetchmail. Imapfilter only works in combination with cronjobs. There is no way I know to invoke Imapfilter every time a new Mail arrives in Mutt. And Getmail can fetching Mails and filter them, but it has no Imap Idle Support. So, what can I do? Do you know a method to get new Mails immediately via Imap Idle, and get them immediately too filtered?

Thanks for your help, Paloran

Sorry for my English - I'm from Germany

Offline

#2 2012-04-18 21:23:16

krist
Member
Registered: 2007-09-27
Posts: 10

Re: Mutt Imap Idle and Mail Filtering

fetchmail can do IMAP idle. So one solution would be to have fetchmail feed your IMAP mail to your local MTA and let procmail do the filtering when it gets delivered to your local mailbox. I never had any problems with fetchmail in years.

IMAP account -> fetchmail (w/ IMAP idle) -> local MTA -> procmail (filtering) -> local mailbox <- mutt (reading)

Offline

#3 2012-04-19 16:41:57

Paloran
Member
Registered: 2011-10-17
Posts: 24

Re: Mutt Imap Idle and Mail Filtering

OK, I'm going to try it out. Thanks for your reply and help so far!

Offline

Board footer

Powered by FluxBB