Sha256: f586fe2f1f55028d2c0ab396fbb43c03a65e5f5e417568151013c17fce7724de
Contents?: true
Size: 669 Bytes
Versions: 7
Compression:
Stored size: 669 Bytes
Contents
# au-kddi handsets render html mail properly only when # all mime parts are in a flat multipart/alternate structure class Galakei::Email::AuMailInterceptor def self.delivering_email(message) if message.to.first =~ /^.+@ezweb\.ne\.jp$/ if message.content_type =~ /^multipart\/related/ params = message.content_type_parameters || {} message.content_type = ["multipart", "alternative", params] message.parts.each do |part| if part.content_type =~ /^multipart\/alternative/ part.parts.each{ |p| message.add_part(p) } message.parts.delete(part) end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems