Hey there all,

I recently switched from using alpine exclusively to using imap on my iDevices. 
 I've converted alpine to read my mailboxes via imap instead of 
local-file-system.

In alpine, I was able to pipe a message to spamc -d servername -C report, which 
would feed bayes, as well as reporting to pyzor, razor, and the like.  While I 
can still do this, I'd like to be able to report/learn from any device I'm on.

Since I'm doing imap more, I've decided to go to the route of having a "learn 
spam" and "learn ham" folder, but after checking the wiki, I don't see a good 
way of going about what I need.

1) While I've found that spamassassin and sa-learn can take a mailbox as an 
argument, I haven't found a good way to do this with spamc.  Also, I'd like it 
if the mere presence of a message in the folder is a sigil of whether or not 
its been processes.

2) While I could take a tool server-side and "mv" the mailbox and then split 
it, I don't know how imap would react to this.

I *think* the right answer is to connect to the mailbox with server-side tools 
that actually implement the correct locks (so as to be imap-compatible, and so 
that they don't process an incomplete message), and delete messages as they're 
piped to spamc -C report.  The thing is, I haven't found any tools that do 
this, and while it's probably a trivial amount of work to implement, I'd rather 
not reinvent the wheel.

Noting as well that my plan is to make this a system-wide thing once this works 
for me, via cron (once every half-hour or so), has anyone else come up with a 
good answer to this problem?

-Dan

Reply via email to