Class: TMail::AddMessageId

Inherits:
Object show all
Defined in:
lib/action_mailer/vendor/tmail-1.2.3/tmail/net.rb

Overview

:stopdoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fqdn = nil) ⇒ AddMessageId

Returns a new instance of AddMessageId.



159
160
161
# File 'lib/action_mailer/vendor/tmail-1.2.3/tmail/net.rb', line 159

def initialize( fqdn = nil )
  @fqdn = fqdn
end

Instance Attribute Details

#fqdnObject

Returns the value of attribute fqdn.



163
164
165
# File 'lib/action_mailer/vendor/tmail-1.2.3/tmail/net.rb', line 163

def fqdn
  @fqdn
end

Instance Method Details

#exec(mail) ⇒ Object



165
166
167
# File 'lib/action_mailer/vendor/tmail-1.2.3/tmail/net.rb', line 165

def exec( mail )
  mail.message_id = ::TMail::new_msgid(@fqdn)
end