end
end
-start = Time.now
+last_update = start = Time.now
found = {}
begin
sources.each do |source|
m.labels -= [:unread] if opts[:read]
end
- num = num_added + num_updated
- if num % 1000 == 0 && num > 0
- elapsed = Time.now - start
- pctdone = source.pct_done
+ if Time.now - last_update > 60
+ last_update = Time.now
+ elapsed = last_update - start
+ pctdone = source.respond_to?(:pct_done) ? source.pct_done : 100.0 * (source.cur_offset.to_f - source.start_offset).to_f / (source.end_offset - source.start_offset).to_f
remaining = (100.0 - pctdone) * (elapsed.to_f / pctdone)
puts "## #{num} (#{pctdone}% done) read; #{elapsed.to_time_s} elapsed; est. #{remaining.to_time_s} remaining"
end
for next release
----------------
-don't quit while writing thread index state to disk or with unsaved drafts/messages
make 'a' archive in thread-view-mode
message attachments
warnings: top-posting, attachments
-de-archived messages should be auto-added to inbox
maildir
undo
-remove stupid percent_done source methods
future
------
+maybe: de-archived messages should be auto-added to inbox
swappable keymappings
bugfix: when returning from a shelling out, ncurses is crazy
bugfix: miscellaneous weirdnesses in buffer line editing
done
----
+x remove stupid percent_done source methods (still useful; made it optional)
+x don't quit while writing thread index state to disk or with unsaved drafts/messages
x bugfix: deleted threads are showing up (i don't see this any more)
x bugfix: changing IMAP ids
x bugfix: STILL new messages, drafts sometimes not showing up in inbox