From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.218.138 with SMTP id hq10cs2021icb; Mon, 20 Dec 2010 22:46:12 -0800 (PST) Received: by 10.224.89.76 with SMTP id d12mr4956503qam.162.1292913971233; Mon, 20 Dec 2010 22:46:11 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id u15si9234263qco.128.2010.12.20.22.46.10; Mon, 20 Dec 2010 22:46:11 -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 66C43167831F; Tue, 21 Dec 2010 01:46:10 -0500 (EST) Received: from gateway0.EECS.Berkeley.EDU (gateway0.EECS.Berkeley.EDU [169.229.60.87]) by rubyforge.org (Postfix) with ESMTP id DC4901858375 for ; Tue, 21 Dec 2010 01:45:13 -0500 (EST) Received: from icsi.berkeley.edu (samurai.ICIR.org [192.150.187.48]) (authenticated bits=0) by gateway0.EECS.Berkeley.EDU (8.14.4/8.13.5) with ESMTP id oBL6ijPQ003897 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 20 Dec 2010 22:44:47 -0800 (PST) Date: Mon, 20 Dec 2010 22:44:45 -0800 From: Matthias Vallentin To: Ben Walton Message-ID: <20101221064445.GZ60419@icsi.berkeley.edu> References: <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> <1292699674-sup-8221@pinkfloyd.chass.utoronto.ca> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1292699674-sup-8221@pinkfloyd.chass.utoronto.ca> X-PGP-Fingerprint: 8A3B 1323 B469 CCBA 54D3 3BCC D5E7 8DF5 9C8D 4B41 User-Agent: Mutt/1.5.20 (2009-06-14) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org On Sat, Dec 18, 2010 at 02:21:40PM -0500, Ben Walton wrote: > Here's my current approach that I've been happy with since I > implemented it back in the summer: Cool, this is exactly how I expected it to look like! > --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-- Neither master nor Damien's Maildir clone contain the class Recoverable. Is this code you added somewhere else? The only (conceptual) issue I see with this code that you miss sources when having more than a month of idleness. Say the suffix of s is 2012.10 and the next time you check back is in December, then you'll miss 2012.11. Now whether anyone of us has the freedom to not check email for that long is a different question :-). > 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. As Tilo mentioned, this is weird indeed since sup calls Index.save which in turn should call SourceManager.save_sources. I'll look into this when I get a chance. Matthias _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk