1 |
On 2012-02-21, Pandu Poluan <pandu@××××××.info> wrote: |
2 |
> On Feb 21, 2012 7:03 AM, "Grant Edwards" <grant.b.edwards@×××××.com> wrote: |
3 |
>> |
4 |
>> On 2012-02-20, Grant Edwards <grant.b.edwards@×××××.com> wrote: |
5 |
>> > I'm looking to set up something that reads messages from one IMAP |
6 |
>> > server/mailbox, filters out the spam, and then writes the filtered |
7 |
>> > messages into another IMAP server/mailbox. The source and destination |
8 |
>> > servers may or may not be the same, and neither is the machine where |
9 |
>> > the filter is running. I'd like the solution to use the IMAP IDLE |
10 |
>> > command to avoid the latency and load of constantly setting up SSL |
11 |
>> > connections and polling the source server. |
12 |
>> > |
13 |
>> > It looks like fetchmail -> procmail+spamassassin -> dovecot/deliver |
14 |
>> > ought to do what I want. |
15 |
>> |
16 |
>> Or not. It looks dovecot can't deliver to a mailbox on an IMAP server |
17 |
>> after all. |
18 |
>> |
19 |
>> > Is there something simpler and easier that I've overlooked? |
20 |
>> |
21 |
> |
22 |
> Seems to me "getmail" is more suitable for your needs: |
23 |
> |
24 |
> http://pyropus.ca/software/getmail/documentation.html#features |
25 |
> |
26 |
> the feature list says that it can run a filtering software, and delivers |
27 |
> emails directly into maildirs. |
28 |
> |
29 |
> Not sure about IDLE support though. |
30 |
|
31 |
I'll take a look at the sources. Doesn't look like it delivers to an |
32 |
IMAP mailbox (I could always add that). |
33 |
|
34 |
I've just thrown together a Python app that reads messages from one |
35 |
IMAP server/mailbox [using the idle command :) ], writes them to |
36 |
another IMAP server/mailbox, and then deletes them from the source |
37 |
server. Now for the filtering... |
38 |
|
39 |
-- |
40 |
Grant Edwards grant.b.edwards Yow! Spreading peanut |
41 |
at butter reminds me of |
42 |
gmail.com opera!! I wonder why? |