Skip to content

Instantly share code, notes, and snippets.

@bradleybuda
Created February 24, 2010 00:59
Show Gist options
  • Save bradleybuda/312934 to your computer and use it in GitHub Desktop.
Save bradleybuda/312934 to your computer and use it in GitHub Desktop.
TMail very large attachment handling
# TMail was crashing trying to process very large messages in a regexp
# match to check to see if the message body is UTF-8 or something
# crazy like ShiftJIS or some other Japanese thing. Let's just go
# ahead and assume that we're always dealing with UTF8 messages to fix
# the crash.
#
# This will probably break lots of other things. I am going straight
# to hell for this.
class String
def isutf8
true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment