From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.13.12 with SMTP id z12cs1170034ebz; Sun, 3 Jan 2010 14:12:10 -0800 (PST) Received: by 10.229.131.37 with SMTP id v37mr9552472qcs.27.1262556729128; Sun, 03 Jan 2010 14:12:09 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 9si18980779qyk.95.2010.01.03.14.12.08; Sun, 03 Jan 2010 14:12:09 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 391B31858321; Sun, 3 Jan 2010 17:12:08 -0500 (EST) Received: from mail-pw0-f60.google.com (mail-pw0-f60.google.com [209.85.160.60]) by rubyforge.org (Postfix) with ESMTP id 8DE241858291 for ; Sun, 3 Jan 2010 13:54:24 -0500 (EST) Received: by pwj13 with SMTP id 13so11402867pwj.19 for ; Sun, 03 Jan 2010 10:54:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.237.31 with SMTP id k31mr15318930wah.183.1262544863585; Sun, 03 Jan 2010 10:54:23 -0800 (PST) Date: Sun, 3 Jan 2010 13:54:23 -0500 Message-ID: <6c0c31751001031054o1befd9e4k34911bcc9e04461c@mail.gmail.com> From: Scott Henson To: sup-talk@rubyforge.org X-Mailman-Approved-At: Sun, 03 Jan 2010 16:54:55 -0500 Subject: [sup-talk] Moving messages between sources and generic auto labeling hook X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1758274430==" Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org --===============1758274430== Content-Type: multipart/alternative; boundary=0016e64ba0821b6867047c472251 --0016e64ba0821b6867047c472251 Content-Type: text/plain; charset=ISO-8859-1 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 --0016e64ba0821b6867047c472251 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Is it possible to have sup move messages between sources? =A0I have only so= much storage on my mail server (work related) and if I don't expire me= ssages out of my inbox, I hit the limit on a regular basis. =A0I have offli= neimap syncing the email down to local maildirs. =A0I would like to have su= p move mails from the INBOX source to an archive source. =A0Is this possibl= e? =A0It would be nice if the archive source was a group of sources accordi= ng to year and month, but that would be gravy.

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

My second question revolves around labeling. =A0I see t= he before add hook is what is supposed to be used for labeling. =A0Does eve= ryone just write ruby in that hook or does someone have a simpler syntax fo= r filtering that a generic before add hook that uses it? =A0I'm thinkin= g 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 affa= ir than writing straight ruby.

Any help would be much appreciated. =A0Thanks.

--
Scott Henson
--0016e64ba0821b6867047c472251-- --===============1758274430== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk --===============1758274430==--