put mail in specific imap folder (procmail with Gmail)
Ok, so I've been using fetchmail, procmail and SpamAssassin for a while to download and filter my email. Since I first started using it, I got a Gmail account, and have started forwarding all my email to my Gmail account, after filtering it with procmail and SpamAssassin.
However, I'd like to be able to configure procmail to send it on to Gmail and have it get a specific label without having to set up a bunch of filters on the Gmail side. I've done that before, and they're getting messy, so I'd like to simplify.
I think the best way to do that would be to connect to Gmail through IMAP and simply put it in a specific IMAP folder, however, I don't know any utility that can take an email message and store it in a particular IMAP folder.
I could probably write such a script in Python, but I was hoping one already exists and I wouldn't have to reinvent the wheel. Does anybody know such a program?
Or, if anyone has any other ideas on how to accomplish this, please tell me!
|