From: Ico Doornekamp <sup@zevv.nl>
To: sup-devel <sup-devel@rubyforge.org>
Subject: [sup-devel] Sup crash when trying to view full headers on deleted message.
Date: Sun, 13 Feb 2011 20:13:10 +0100 [thread overview]
Message-ID: <1297624152-sup-1543@pruts.nl> (raw)
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
reply other threads:[~2011-02-13 19:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1297624152-sup-1543@pruts.nl \
--to=sup@zevv.nl \
--cc=sup-devel@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox