[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sup-devel] Sup crash when trying to view full headers on deleted message.
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
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel