Revision 50f6ab1c
Added by Marc Dequènes over 15 years ago
- ID 50f6ab1cebd0f91ff9a2c6ac46b1b525d97730b5
lib/tmail_gpg.rb | ||
---|---|---|
end
|
||
|
||
def copy_headers_from(mail)
|
||
mail.header.keys.each do |h|
|
||
#if mail[h].is_a? Array
|
||
# list = []
|
||
# mail[h].each {|d| list << d.to_s }
|
||
# self[h] = list
|
||
#else
|
||
self[h] = mail[h].to_s
|
||
#end
|
||
end
|
||
# deep clone
|
||
@header = Marshal.load(Marshal.dump(mail.header))
|
||
#@header = mail.header
|
||
end
|
||
|
||
protected
|
Also available in: Unified diff
[fix] updated the TMail extension