Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: Scott Henson <sjh@foolishpride.org>
To: sup-talk@rubyforge.org
Subject: [sup-talk] Moving messages between sources and generic auto labeling hook
Date: Sun, 3 Jan 2010 13:54:23 -0500	[thread overview]
Message-ID: <6c0c31751001031054o1befd9e4k34911bcc9e04461c@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1278 bytes --]

Is it possible to have sup move messages between sources?  I have only so
much storage on my mail server (work related) and if I don't expire messages
out of my inbox, I hit the limit on a regular basis.  I have offlineimap
syncing the email down to local maildirs.  I would like to have sup move
mails from the INBOX source to an archive source.  Is this possible?  It
would be nice if the archive source was a group of sources according to year
and month, but that would be gravy.

I've found a python script that will do this for me on the Maildir, but I'm
not sure what this will do to the sup index.  Would I be able to do this on
a nightly basis and then do a full rescan on the INBOX source and the
archive sources?  Would the messages keep their labels?

My second question revolves around labeling.  I see the before add hook is
what is supposed to be used for labeling.  Does everyone just write ruby in
that hook or does someone have a simpler syntax for filtering that a generic
before add hook that uses it?  I'm thinking the simplest would be yaml, but
this being ruby I would think creating a DSL for filtering would be pretty
easy and make autolabeling an easier affair than writing straight ruby.

Any help would be much appreciated.  Thanks.

-- 
Scott Henson

[-- Attachment #1.2: Type: text/html, Size: 1400 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

             reply	other threads:[~2010-01-03 22:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-03 18:54 Scott Henson [this message]
2010-01-05 21:09 ` William Morgan
2010-01-04  1:41 Scott Henson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6c0c31751001031054o1befd9e4k34911bcc9e04461c@mail.gmail.com \
    --to=sjh@foolishpride.org \
    --cc=sup-talk@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox