sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit a301c8d37436653a504f0271bce647baa9848a0b
parent f9358a0fec7d6afcc6cd3f883e22961a33188c0e
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Tue,  3 Apr 2007 00:49:33 +0000

fixed drafts bug and now pollmode stays hidden upon poll

git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@373 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M bin/sup | 2 +-
M doc/TODO | 39 ++++++++++++++++++++-------------------
M lib/sup/message.rb | 2 +-
M lib/sup/util.rb | 1 +
4 files changed, 23 insertions(+), 21 deletions(-)
diff --git a/bin/sup b/bin/sup
@@ -175,7 +175,7 @@ begin
           bm.spawn "New Message", mode
           mode.edit
         when :poll
-          bm.raise_to_front PollManager.buffer
+#          bm.raise_to_front PollManager.buffer
           reporting_thread { PollManager.poll }
         when :recall_draft
           case Index.num_results_for :label => :draft
diff --git a/doc/TODO b/doc/TODO
@@ -1,23 +1,9 @@
-for 0.0.8
+for 0.0.9
 ---------
-x nice little startup config program
-x bugfix: triggering a pageup when cursor scrolling up jumps to the
-   bottom of the page rather than the next line
-x bugfix: final logging messages to stdout?
-x bugfix: mbox directory shouldn't generate an exception, just an error
-x bugfix: m in thread-view-mode when a person is not selected should open up a
-   blank compose-mode rather than do nothing
-x bugfix: stars on messages with blue backgrounds still have green bgs
-x ferret upgrade script (dump & restore)
-x bugfix: mark messages as read immediately when t-v-m is opened
-x compose in thread-view-mode auto-fills in person
-x bugfix: 'N' in thread-view-mode (expand only new messages) crashes
-x bugfix: detect source corruption at startup
-x maildir
-x bugfix: single-line messages come empty upon reply
-
-next release
-------------
+_ bugfix: sup-add not prompting for old accounts, i think? possibly because
+    sources no longer respond_to? :username due to Recoverable wrapping
+_ bugfix: rmail multipart error
+_ bugfix: ferret flakiness: just added message but can't find it.
 _ bugfix: when one new message comes into an imap folder, we don't
    catch it until a reload (sometimes?)
 _ bugfix: add new message counts until keypress
@@ -61,6 +47,21 @@ prune old entries from contacts.txt so that it doesn't arbitrarily
 
 done
 ----
+x nice little startup config program
+x bugfix: triggering a pageup when cursor scrolling up jumps to the
+   bottom of the page rather than the next line
+x bugfix: final logging messages to stdout?
+x bugfix: mbox directory shouldn't generate an exception, just an error
+x bugfix: m in thread-view-mode when a person is not selected should open up a
+   blank compose-mode rather than do nothing
+x bugfix: stars on messages with blue backgrounds still have green bgs
+x ferret upgrade script (dump & restore)
+x bugfix: mark messages as read immediately when t-v-m is opened
+x compose in thread-view-mode auto-fills in person
+x bugfix: 'N' in thread-view-mode (expand only new messages) crashes
+x bugfix: detect source corruption at startup
+x maildir
+x bugfix: single-line messages come empty upon reply
 x make 'A' archive in thread-view-mode
 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
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -140,7 +140,7 @@ class Message
 
   def snippet; @snippet || chunks && @snippet; end
   def is_list_message?; !@list_address.nil?; end
-  def is_draft?; DraftLoader === @source; end
+  def is_draft?; @source.is_a? DraftLoader; end
   def draft_filename
     raise "not a draft" unless is_draft?
     @source.fn_for_offset @source_info
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
@@ -301,6 +301,7 @@ class Recoverable
   def id; __pass :id; end
   def to_s; __pass :to_s; end
   def to_yaml x; __pass :to_yaml, x; end
+  def is_a? c; @o.is_a? c; end
 
   def __pass m, *a, &b
     begin