bin/sup-recover-sources in sup-0.11 vs bin/sup-recover-sources in sup-0.12

- old
+ new

@@ -56,20 +56,10 @@ ARGV.each do |fn| next if Redwood::SourceManager.source_for fn ## TODO: merge this code with the same snippet in import - source = - case fn - when %r!^imaps?://! - print "Username for #{fn}: " - username = $stdin.gets.chomp - print "Password for #{fn} (warning: cleartext): " - password = $stdin.gets.chomp - Redwood::IMAP.new(fn, username, password, nil, !$opts[:unusual], $opts[:archive]) - else - Redwood::MBox::Loader.new(fn, nil, !$opts[:unusual], $opts[:archive]) - end + source = Redwood::MBox.new(fn, nil, !$opts[:unusual], $opts[:archive]) source_ids = Hash.new 0 count = 0 source.each do |offset, labels| m = Redwood::Message.new :source => source, :source_info => offset