Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Comments from a new user and a question about spam
@ 2008-06-12  1:47 Blake Burkhart
  2008-06-12 19:35 ` William Morgan
  0 siblings, 1 reply; 3+ messages in thread
From: Blake Burkhart @ 2008-06-12  1:47 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sup-talk] Comments from a new user and a question about spam
  2008-06-12  1:47 [sup-talk] Comments from a new user and a question about spam Blake Burkhart
@ 2008-06-12 19:35 ` William Morgan
  2008-06-15 22:18   ` Blake Burkhart
  0 siblings, 1 reply; 3+ messages in thread
From: William Morgan @ 2008-06-12 19:35 UTC (permalink / raw)


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>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sup-talk] Comments from a new user and a question about spam
  2008-06-12 19:35 ` William Morgan
@ 2008-06-15 22:18   ` Blake Burkhart
  0 siblings, 0 replies; 3+ messages in thread
From: Blake Burkhart @ 2008-06-15 22:18 UTC (permalink / raw)


Excerpts from William Morgan's message of Thu Jun 12 14:35:16 -0500 2008:
> 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.

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-06-15 22:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-12  1:47 [sup-talk] Comments from a new user and a question about spam Blake Burkhart
2008-06-12 19:35 ` William Morgan
2008-06-15 22:18   ` Blake Burkhart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox