Class: Galakei::Email::AuMailInterceptor
- Inherits:
-
Object
- Object
- Galakei::Email::AuMailInterceptor
- Defined in:
- lib/galakei/email/au_mail_interceptor.rb
Overview
au-kddi handsets render html mail properly only when all mime parts are in a flat multipart/alternate structure
Class Method Summary collapse
-
.delivering_email(message) ⇒ Object
:nodoc:.
Class Method Details
.delivering_email(message) ⇒ Object
:nodoc:
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/galakei/email/au_mail_interceptor.rb', line 4 def self.delivering_email() if .to.first =~ /^.+@ezweb\.ne\.jp$/ if .content_type =~ /^multipart\/related/ params = .content_type_parameters || {} .content_type = ["multipart", "alternative", params] .parts.each do |part| if part.content_type =~ /^multipart\/alternative/ part.parts.each{ |p| .add_part(p) } .parts.delete(part) end end end end end |