Subject: Re: [sup-talk] Current art for sup-sync-back and maildir

From: William Morgan <[email-masked]>
Date: Sat, 19 Dec 2009 10:57:21 -0800

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 <[email-masked]>
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: "Edward Z. Yang" <[email-masked]>
Date: Tue, 15 Dec 2009 20:39:41 -0500

Cheers,
Edward