Method: Waw::Tools::MailAgent::Mail#dup

Defined in:
lib/waw/tools/mail/mail.rb

#dupObject

Makes a deep copy of this mail. Changing the list of receivers in particular does not affect the original mail



108
109
110
111
112
113
114
# File 'lib/waw/tools/mail/mail.rb', line 108

def dup
  mail = super
  mail.to = to.nil? ? nil : to.dup
  mail.cc = cc.nil? ? nil : cc.dup
  mail.bcc = bcc.nil? ? nil : bcc.dup
  mail
end