From: William Morgan <wmorgan-sup@masanjin.net>
To: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] Current art for sup-sync-back and maildir
Date: Sat, 19 Dec 2009 10:57:21 -0800 [thread overview]
Message-ID: <1261248273-sup-4768@masanjin.net> (raw)
In-Reply-To: <1260927504-sup-4241@ezyang>
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
prev parent reply other threads:[~2009-12-19 18:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-16 1:39 Edward Z. Yang
2009-12-19 18:57 ` William Morgan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1261248273-sup-4768@masanjin.net \
--to=wmorgan-sup@masanjin.net \
--cc=sup-talk@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox