Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
* [sup-devel] [PATCH] Don't choke when scanning message with unknown encoding
@ 2010-06-29  8:04 Sascha Silbe
  2010-07-03  2:31 ` Rich Lane
  0 siblings, 1 reply; 2+ messages in thread
From: Sascha Silbe @ 2010-06-29  8:04 UTC (permalink / raw)
  To: sup-devel

This fixes the following error:

./lib/sup/message.rb:473:in `message_to_chunks': "7BIT" (RMail::EncodingUnsupportedError)

when running sup-sync on a folder that contains a mail with these headers:

Content-Transfer-Encoding: 7bit
X-Mime-Autoconverted: from 8bit to 7bit by courier 0.60

Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
---
 lib/sup/message.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/sup/message.rb b/lib/sup/message.rb
index 1385585..a13fc0c 100644
--- a/lib/sup/message.rb
+++ b/lib/sup/message.rb
@@ -259,7 +259,7 @@ class Message
           rmsg = source.load_message(source_info)
           parse_header rmsg.header
           message_to_chunks rmsg
-        rescue SourceError, SocketError => e
+        rescue SourceError, SocketError, RMail::EncodingUnsupportedError => e
           warn "problem getting messages from #{source}: #{e.message}"
           ## we need force_to_top here otherwise this window will cover
           ## up the error message one
-- 
1.6.5

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [sup-devel] [PATCH] Don't choke when scanning message with unknown encoding
  2010-06-29  8:04 [sup-devel] [PATCH] Don't choke when scanning message with unknown encoding Sascha Silbe
@ 2010-07-03  2:31 ` Rich Lane
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Lane @ 2010-07-03  2:31 UTC (permalink / raw)
  To: Sascha Silbe; +Cc: sup-devel

Applied to master.
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-03  2:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-29  8:04 [sup-devel] [PATCH] Don't choke when scanning message with unknown encoding Sascha Silbe
2010-07-03  2:31 ` Rich Lane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox