Class: TMail::AddMessageId

Inherits:
Object show all
Defined in:
lib/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.


161
162
163
# File 'lib/tmail/net.rb', line 161

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

Instance Attribute Details

#fqdnObject

Returns the value of attribute fqdn


165
166
167
# File 'lib/tmail/net.rb', line 165

def fqdn
  @fqdn
end

Instance Method Details

#exec(mail) ⇒ Object


167
168
169
# File 'lib/tmail/net.rb', line 167

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