From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RzeWm-0002JQ-57 for garchives@archives.gentoo.org; Tue, 21 Feb 2012 01:28:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 43853E0F0F; Tue, 21 Feb 2012 01:28:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 58B94E0EF5 for ; Tue, 21 Feb 2012 01:27:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 887381B400D for ; Tue, 21 Feb 2012 01:27:12 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -2.582 X-Spam-Level: X-Spam-Status: No, score=-2.582 tagged_above=-999 required=5.5 tests=[AWL=-1.573, BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, FSL_RCVD_USER=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pi_K77gBrRKF for ; Tue, 21 Feb 2012 01:27:06 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A997D1B4014 for ; Tue, 21 Feb 2012 01:27:06 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RzeVS-0001mG-PJ for gentoo-user@gentoo.org; Tue, 21 Feb 2012 02:27:02 +0100 Received: from dsl.comtrol.com ([64.122.56.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Feb 2012 02:27:02 +0100 Received: from grant.b.edwards by dsl.comtrol.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Feb 2012 02:27:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Re: Looking for IMAP->IMAP spam filtering Date: Tue, 21 Feb 2012 01:26:53 +0000 (UTC) Message-ID: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dsl.comtrol.com User-Agent: slrn/pre0.9.9-102 (Linux) X-Archives-Salt: 37489194-180e-46cf-b259-7105f7afc25d X-Archives-Hash: 65795e74ca89a8f8fc8bb17cfbfe8cd9 On 2012-02-21, Pandu Poluan wrote: > On Feb 21, 2012 7:03 AM, "Grant Edwards" wrote: >> >> On 2012-02-20, Grant Edwards 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?