Class: TMail::AddMessageId

Inherits:
Object show all
Defined in:
lib/tmail/net.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fqdn = nil) ⇒ AddMessageId

Returns a new instance of AddMessageId.



197
198
199
# File 'lib/tmail/net.rb', line 197

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

Instance Attribute Details

#fqdnObject

Returns the value of attribute fqdn.



201
202
203
# File 'lib/tmail/net.rb', line 201

def fqdn
  @fqdn
end

Instance Method Details

#exec(mail) ⇒ Object



203
204
205
# File 'lib/tmail/net.rb', line 203

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