mail_hander_broken_attachment_filename.diff

Nobuhiro IMAI, 2009-09-24 07:24

Download (543 Bytes)

View differences:

app/models/mail_handler.rb
201 201
  def add_attachments(obj)
202 202
    if email.has_attachments?
203 203
      email.attachments.each do |attachment|
204
        attachment.original_filename = attachment.original_filename.toutf8
204 205
        Attachment.create(:container => obj,
205 206
                          :file => attachment,
206 207
                          :author => user,