From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.90.87.14 with SMTP id k14cs565381agb; Sat, 19 Dec 2009 10:57:30 -0800 (PST) Received: by 10.224.22.5 with SMTP id l5mr3011682qab.380.1261249047355; Sat, 19 Dec 2009 10:57:27 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 32si6786564qyk.120.2009.12.19.10.57.27; Sat, 19 Dec 2009 10:57:27 -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 26B3418582CE; Sat, 19 Dec 2009 13:57:27 -0500 (EST) Received: from entry.masanjin.net (masanjin.net [209.20.72.13]) by rubyforge.org (Postfix) with ESMTP id 733921858302 for ; Sat, 19 Dec 2009 13:57:21 -0500 (EST) Received: from w by entry.masanjin.net with local (Exim 4.69) (envelope-from ) id 1NM4UT-0000qu-BH for sup-talk@rubyforge.org; Sat, 19 Dec 2009 10:57:21 -0800 From: William Morgan To: sup-talk In-reply-to: <1260927504-sup-4241@ezyang> References: <1260927504-sup-4241@ezyang> Date: Sat, 19 Dec 2009 10:57:21 -0800 Message-Id: <1261248273-sup-4768@masanjin.net> User-Agent: Sup/git Subject: Re: [sup-talk] Current art for sup-sync-back and maildir 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 Reformatted excerpts from Edward Z. Yang's message of 2009-12-15: > What is the current art of backwards synchronization for > maildir sources? I'm almost out of quota on my main account > and I'd like to make OfflineImap purge all of the messages I've > deleted over the years (I also don't relish the prospect of > running a sup-sync after manually deleting messages myself). Sadly, there is no art. No one ever got around to implementing this. You could do it manually via devel/console.sh (or the in-screen console) with a little effort. Something like: $ sh devel/console.sh > s = SourceManager.source_for "maildir:/WHATEVER" > q = Index.parse_query "label:deleted source:#{s.id}" > Index.each_id(q) { |id| fn = s.filename_for_id(id); puts "delete #{fn}" } (You'll have to use the most recent git because I just added the Maildir#filename_for_id method.) -- William _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk