[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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 <wmorgan-sup@masanjin.net>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk