public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Grant Edwards <grant.b.edwards@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: Looking for IMAP->IMAP spam filtering
Date: Tue, 21 Feb 2012 01:26:53 +0000 (UTC)	[thread overview]
Message-ID: <jhurst$n2l$1@dough.gmane.org> (raw)
In-Reply-To: CAA2qdGVwWdYB_e8wF6kzLZ9p2aVqy2gmGaeowdaJu98JXdXejg@mail.gmail.com

On 2012-02-21, Pandu Poluan <pandu@poluan.info> wrote:
> On Feb 21, 2012 7:03 AM, "Grant Edwards" <grant.b.edwards@gmail.com> wrote:
>>
>> On 2012-02-20, Grant Edwards <grant.b.edwards@gmail.com> wrote:
>> > I'm looking to set up something that reads messages from one IMAP
>> > server/mailbox, filters out the spam, and then writes the filtered
>> > messages into another IMAP server/mailbox. The source and destination
>> > servers may or may not be the same, and neither is the machine where
>> > the filter is running. I'd like the solution to use the IMAP IDLE
>> > command to avoid the latency and load of constantly setting up SSL
>> > connections and polling the source server.
>> >
>> > It looks like fetchmail -> procmail+spamassassin -> dovecot/deliver
>> > ought to do what I want.
>>
>> Or not.  It looks dovecot can't deliver to a mailbox on an IMAP server
>> after all.
>>
>> > Is there something simpler and easier that I've overlooked?
>>
>
> Seems to me "getmail" is more suitable for your needs:
>
> http://pyropus.ca/software/getmail/documentation.html#features
>
> the feature list says that it can run a filtering software, and delivers
> emails directly into maildirs.
>
> Not sure about IDLE support though.

I'll take a look at the sources.  Doesn't look like it delivers to an
IMAP mailbox (I could always add that).

I've just thrown together a Python app that reads messages from one
IMAP server/mailbox [using the idle command :) ], writes them to
another IMAP server/mailbox, and then deletes them from the source
server.  Now for the filtering...

-- 
Grant Edwards               grant.b.edwards        Yow! Spreading peanut
                                  at               butter reminds me of
                              gmail.com            opera!!  I wonder why?




  reply	other threads:[~2012-02-21  1:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-20 23:40 [gentoo-user] Looking for IMAP->IMAP spam filtering Grant Edwards
2012-02-21  0:00 ` [gentoo-user] " Grant Edwards
2012-02-21  1:02   ` Pandu Poluan
2012-02-21  1:26     ` Grant Edwards [this message]
2012-02-21  1:29 ` [gentoo-user] " Pandu Poluan
2012-02-21 17:00   ` [gentoo-user] " Grant Edwards

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='jhurst$n2l$1@dough.gmane.org' \
    --to=grant.b.edwards@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox