Tom Hendrikx <[email protected]> writes:

>> Right now, offlineimap accesses my mail as follows (to synchronize the
>> changes to the remote mail server):
>> 
>> --8<---------------cut here---------------start------------->8---
>> [Repository LocalIMAP]
>> type = IMAP
>> preauthtunnel = /usr/local/Cellar/dovecot/2.2.7/libexec/dovecot/imap -c 
>> ~/.dovecotzimbra.rc
>> --8<---------------cut here---------------end--------------->8---
>> 
>> I assume I would need to change these lines to include dspam, but only
>> when delivering mail but not when accessing mail to find local changes
>> to propagate upstream.
>
> I don't really know (or care) how offlineimap works. You need to push
> every new message that is received throudgh dspam, then pass it on to
> dovecot. If the config above is the right place to do that, then replace
> the 'preauthtunnel' commandline with a call to dspam, and use
> 'TrustedDeliveryAgent/UntrustedDeliveryAgent' to use the dovecot
> delivery method that was in offlineimap config before.

Offlineimap can only interact with IMAP servers and with maildir. So
unless dspam can act as an IMAP server, I'm afraid this solution cannot
work.

>> Could it be simpler to have all my mail delivered to a special mailbox
>> (i.e., a maildir "unsorted"), then run dspam against it regularly to put
>> mail in maildirs "ham", "spam", and "unsure"? Is it possible?
>
> That is an ugly solution I think :)
>
> As you're using a recent dovecot install, you could also look into using
> sieve + extprograms extension, to run dspam as a filter from sieve. This
> will add the dspam headers that you can use with for instance spamtest
> extension (or plain sieve sorting rules).

Thank you for the suggestion. I'm using dovecot 2.2.10, which seems to
be recent enough. I'll give this a try.

Alan

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Dspam-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to