sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 74575daded55b68ec891677898676d56fdc29467
parent dd2d0db90173f1f387b1788387c590370e5c8ec7
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Wed, 13 Jun 2007 00:57:16 +0000

bugfix: sup-sync sort_by nil (thanks to jeff covey)

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

Diffstat:
M bin/sup-sync | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/sup-sync b/bin/sup-sync
@@ -149,7 +149,7 @@ begin
 
       ## skip if we're operating on restored messages, and this one
       ## ain't.
-      next if target == :restored && (!restored_state[m.id] || restored_state[m.id].sort_by { |s| s.to_s } == index_state.sort_by { |s| s.to_s })
+      next if target == :restored && (!restored_state[m.id] || (index_state && restored_state[m.id].sort_by { |s| s.to_s } == index_state.sort_by { |s| s.to_s }))
 
       ## m.labels is the default source labels. tweak these according
       ## to default source state modification flags.