Reformatted excerpts from Amit Kucheria's message of 2009-09-03:
> I've been watching sup for a while and finally decided to take the
> plunge today.

Welcome!

> I've run sup-config and it seems to expect that I list every maildir
> folder I've got. Is there a way to generate this dynamically?

If you can generate the list (e.g. with the find command you cited), you
can add maildir sources with sup-add directly, instead of having to go
through sup-config.

If you want to automatically detect and add new folders, we could d
something similar in the startup hook. Something like (completely
untested):

  dirs = `find ~/Mail/whatever...`
  dirs.each do |d|
    uri = "maildir:#{d}"
    log "trying #{uri}..."
    unless SourceManager.source_for uri
      source = Maildir.new uri
      SourceManager.add_source source
      log "Added #{uri}"
    end
  end

> p.s. sup-sync has been at it on my lkml folder with ~40K mail messages
> for 30mins now.

Yep, indexing stuff is slow. FWIW, you only have to do it once, and
there are new index backends that are significantly faster. (But still
far from instantaneous.)
-- 
William <[email protected]>
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to