Module: Groat::SMTPD::Extensions::EightBitMIME
- Defined in:
- lib/groat/smtpd/extensions/eightbitmime.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(mod) ⇒ Object
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/groat/smtpd/extensions/eightbitmime.rb', line 25 def self.included mod puts "Included RFC 1652: 8bit-MIMEtransport" mod.ehlo_keyword :"8bitmime" mod.mail_param :body, :mail_param_body mod.inheritable_attr(:body_encodings) mod.body_encodings = [] if mod.body_encodings.nil? mod.body_encodings << "8BITMIME" unless mod.body_encodings.include? "8BITMIME" mod.body_encodings << "7BIT" unless mod.body_encodings.include? "7BIT" super end |
Instance Method Details
#mail_param_body(param) ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'lib/groat/smtpd/extensions/eightbitmime.rb', line 36 def mail_param_body(param) param.upcase! unless self.class.body_encodings.include? param response_bad_parameter(:message => "Unown mail body type") end @mail_body = param puts "MAIL BODY=#{@mail_body}" end |