From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.218.138 with SMTP id hq10cs19292icb; Sat, 18 Dec 2010 11:30:18 -0800 (PST) Received: by 10.224.60.213 with SMTP id q21mr1650659qah.351.1292700618369; Sat, 18 Dec 2010 11:30:18 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id l6si3652797qck.132.2010.12.18.11.30.18; Sat, 18 Dec 2010 11:30:18 -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 2005A18583BE; Sat, 18 Dec 2010 14:30:17 -0500 (EST) Received: from www.cquest.utoronto.ca (www.cquest.utoronto.ca [192.82.128.5]) by rubyforge.org (Postfix) with ESMTP id DA00E18583BB for ; Sat, 18 Dec 2010 14:21:40 -0500 (EST) Received: from pinkfloyd.chass.utoronto.ca ([128.100.160.254]:48301 ident=93) by www.cquest.utoronto.ca with esmtp (Exim 4.43) id 1PU2Lc-0003XN-7V; Sat, 18 Dec 2010 14:21:40 -0500 Received: from bwalton by pinkfloyd.chass.utoronto.ca with local (Exim 4.72) (envelope-from ) id 1PU2Lc-0002Ey-6a; Sat, 18 Dec 2010 14:21:40 -0500 From: Ben Walton To: Matthias Vallentin In-reply-to: <20101218190427.GU60419@icsi.berkeley.edu> References: <1271023429-sup-9851@zyrg.net> <1271249704-sup-1088@masanjin.net> <1271254358-sup-3024@pinkfloyd.chass.utoronto.ca> <1271260552-sup-9153@masanjin.net> <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca> <20101215081955.GF568@icsi.berkeley.edu> <1292432651-sup-6834@jamestaylor.org> <20101218051216.GS60419@icsi.berkeley.edu> <1292649662-sup-8863@jamestaylor.org> <20101218190427.GU60419@icsi.berkeley.edu> Date: Sat, 18 Dec 2010 14:21:40 -0500 Message-Id: <1292699674-sup-8221@pinkfloyd.chass.utoronto.ca> User-Agent: Sup/git Cc: sup-talk Subject: Re: [sup-talk] current state of synching upstream? 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: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org Excerpts from Matthias Vallentin's message of Sat Dec 18 14:04:27 -0500 2010: > The downside appears to be that each rotation adds, in the above > example, 10 new source entries to sources.yaml and requires > switching of polling in the non-current sources. Here's my current approach that I've been happy with since I implemented it back in the summer: 1. Procmail files all mail (regardless of originating source) into Maildirs like .incoming.%Y.%m. This gives me a new maildir each month that holds all incoming mail for that month. The basics of the .procmailrc to do this are: --snip-- MAILDIR=$HOME/Maildir/ DATEDIR=`date +%Y.%m` :0 $MAILDIR/.incoming.$DATEDIR/ --snip-- 2. I have the following hook setup as after-poll: --snip-- s = "maildir:/path/to/Maildir/.incoming.#{Date.today.strftime("%Y.%m")}" unless Redwood::SourceManager.source_for(s) Redwood::Logger.force_message "Adding new source: #{s}" Redwood::SourceManager.add_source Recoverable.new(Redwood::Maildir.new(s)) end --snip-- 3. I have almost all of my labelling done via the before-add-message hook. This gets me the per-mailing-list tags that I would have applied based on source originally. I almost never apply tags manually any more. The only downside to this is that my sources.yaml file needs manual twiddling at restart to add the sources that were added during runtime. I've yet to be annoyed enough by this to figure out how to make these dynamic additions sticky across restarts. HTH. -Ben -- Ben Walton Systems Programmer - CHASS University of Toronto C:416.407.5610 | W:416.978.4302 _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk