commit 25577c0a58c559cb76d4225c4821f72c48b04b7a
parent b93c20849c5027f5f027764b570b1d33361fb944
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date: Fri, 27 Nov 2009 14:31:38 -0500
Merge branch 'decode-attachment-filenames'
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -494,6 +494,8 @@ private
## if there's a filename, we'll treat it as an attachment.
if filename
+ ## filename could be 2047 encoded
+ filename = Rfc2047.decode_to $encoding, filename
# add this to the attachments list if its not a generated html
# attachment (should we allow images with generated names?).
# Lowercase the filename because searches are easier that way