Subject: [sup-devel] Sup crash when trying to view full headers on deleted message.

From: Ico Doornekamp <[email-masked]>
Date: Sun, 13 Feb 2011 20:13:10 +0100

The patch below avoids a crash when opening a full header view on deleted messages.

---
 lib/sup/message.rb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/lib/sup/message.rb b/lib/sup/message.rb
index 832716e..b8d066d 100644
--- a/lib/sup/message.rb
+++ b/lib/sup/message.rb
@@ -274,7 +274,11 @@ EOS
   end

   def raw_header
-    location.raw_header
+    begin
+      location.raw_header
+    rescue OutOfSyncSourceError => e
+      error_message
+    end
   end

   def raw_message
--
1.7.0.4

-- 
:wq
^X^Cy^K^X^C^C^C^C
_______________________________________________
Sup-devel mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-devel