Push full metadata to the file callback (parsed and unparsed) - not only the unparsed mime headers
This commit is contained in:
parent
464dea8ea4
commit
82cec2c01b
1 changed files with 3 additions and 3 deletions
|
@ -421,7 +421,7 @@ function mimedecode_message_body( src, msg, filecb )
|
||||||
end
|
end
|
||||||
|
|
||||||
if store then
|
if store then
|
||||||
store( field.headers, predata, true )
|
store( field, predata, true )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -439,7 +439,7 @@ function mimedecode_message_body( src, msg, filecb )
|
||||||
data = data:sub( 1, #data - 78 )
|
data = data:sub( 1, #data - 78 )
|
||||||
|
|
||||||
if store then
|
if store then
|
||||||
store( field.headers, data, false )
|
store( field, data, false )
|
||||||
else
|
else
|
||||||
return nil, "Invalid MIME section header"
|
return nil, "Invalid MIME section header"
|
||||||
end
|
end
|
||||||
|
@ -451,7 +451,7 @@ function mimedecode_message_body( src, msg, filecb )
|
||||||
lchunk, eof = parse_headers( data, field )
|
lchunk, eof = parse_headers( data, field )
|
||||||
inhdr = not eof
|
inhdr = not eof
|
||||||
else
|
else
|
||||||
store( field.headers, lchunk, false )
|
store( field, lchunk, false )
|
||||||
lchunk, chunk = chunk, nil
|
lchunk, chunk = chunk, nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue