Revision 3b5432af
Added by Marc Dequènes over 14 years ago
- ID 3b5432afb48e92cac8f6336893b4b6c788f7fa46
lib/cyborghood/base/lang_additions.rb | ||
---|---|---|
yield
|
||
|
||
else
|
||
bound = @header['content-type'].params['boundary'] || ::TMail.new_boundary
|
||
bound = ::TMail.new_boundary
|
||
if @header.key? 'content-type'
|
||
@header['content-type'].params['boundary'] = bound
|
||
if @header['content-type'].params.key? 'boundary'
|
||
bound = @header['content-type'].params['boundary']
|
||
else
|
||
@header['content-type'].params['boundary'] = bound
|
||
end
|
||
else
|
||
store 'Content-Type', %<multipart/mixed; boundary="#{bound}">
|
||
end
|
lib/tmail_gpg.rb | ||
---|---|---|
def copy_headers_from(mail)
|
||
# deep clone
|
||
@header = Marshal.load(Marshal.dump(mail.header))
|
||
#@header = mail.header
|
||
end
|
||
|
||
protected
|
Also available in: Unified diff
[fix] check for MIME boundaries better