Imapsync and gmail

gmailgoogleimapimapsync

I've successfully set up an "imap forwarding" solution using imapsync to move my mail from one imap server to my company's google apps email.

Everything works dandy except that the new mail is not "received" so gmail does not run it's filters on it. This is a rather unique situation with gmail, but is there anyway to have an imap level transfer and still have gmail run it's filters? Even a "filter all email now" button (that worked with all filters of course) would suffice.

Notes:
– Mail forwarding is out of the question for complicated reasons.
– I'm aware of imapfilter, but i'd rather use google's filtering if possible.

Best Answer

I don't think you will find a way to make the google filters run automatically on email that is pushed via IMAP, but there is an option, when creating or editing filters, to apply the filter to all matching mail currently on the server. I think that satisfies your "filter all email now" example.

Alternatively, you could change your insertion method. I assume there must be some reason you can't have gmail pull from a POP or IMAP account, which would cause the filters to fire. What about using an intermediary account? You could push to the intermediary using imapsync, then pull from your main gmail account, which would cause the imported mail to be filtered properly

Related Topic