Subject: [sup-talk] Comments from a new user and a question about spam

From: [email-masked] (Blake Burkhart)
Date: Wed, 11 Jun 2008 20:47:26 -0500

First, I'd like to say that sup is great. I realized that it would be good to
use a console email client would be simpler, less complicated, and just seemed
cool a while back. However, I chose to try out mutt and it became a lot more
complicated instead. Sup however, is fantastic. Not to complicated, all the
features you need and still fairly simple to use.

However, I can't find an easy way to deal with spam using sup. Before, I was
moving any spam to a separate IMAP folder on the server and had a script running
with cron that sent the entire spam folder to spamassassin's Bayesian training 
program, sa-learn, so it could learn it was spam. Afterwards, it moved the 
contents of the spam folder to the trash folder.

Now, the script still runs and sup doesn't seem to have too much of a problem
with email disappearing from it's mailbox other than needing to run "sup-sync
--changed" on the spam mailbox. However, I now have no way to send any new
messages to the IMAP spam folder so they are taught to the Bayesian filter
because sup simply adds the spam label to messages to mark them as spam.

I was wondering if there was anyway a ruby script could search for any messages
with the spam label, get the filenames of the messages, move the messages to
the other folder, run offlineimap to sync them over, and then run "sup-sync
--changed" on the spam mailbox. However, I'm currently stil teaching my self
ruby (for the purpose of learning Ruby on Rails) and I have no idea if there's
anyway to access the files from inside sup.

Of course if there's any easier way to move the messages with the spam label
that would be nice too.

Thanks
-- 
Blake Burkhart

---

From: [email-masked] (William Morgan)
Date: Thu, 12 Jun 2008 12:35:16 -0700

Reformatted excerpts from Blake Burkhart's message of 2008-06-11:
> I was wondering if there was anyway a ruby script could search for any
> messages with the spam label, get the filenames of the messages, move
> the messages to the other folder, run offlineimap to sync them over,
> and then run "sup-sync --changed" on the spam mailbox. However, I'm
> currently stil teaching my self ruby (for the purpose of learning Ruby
> on Rails) and I have no idea if there's anyway to access the files
> from inside sup.

There's a tool call sup-sync-back which can remove spam-labeled messages
from an mbox file, which is the or less what you want. Extending it to
work with Maildir has been on the todo list a long time. I've added that
as an  official ditz issue:

http://sup.rubyforge.org/ditz/issue-57668c69d0190d6e849309834d4ad1d215efa779.html
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Blake Burkhart)
Date: Sun, 15 Jun 2008 17:18:13 -0500

Excerpts from William Morgan's message of Thu Jun 12 14:35:16 -0500 2008:
> from an mbox file, which is the or less what you want.

Wow, I completely missed that particular program when I was looking for a way to
move the spam. The name "sup-sync-back" isn't the most descriptive name for what
it does though. Yeah that's exactly what I'm looking for. If its move option worked
on maildirs that would work perfectly.

> Extending it to work with Maildir has been on the todo list a long time.

Yeah, that would be nice. I don't hardly know ruby (yet) so I won't offer to help,
but that's great.
-- 
Blake Burkhart