uchicago-library / attachment-converter

Attachment Converter: tool for batch converting attachments in an email mailbox
GNU General Public License v2.0
8 stars 3 forks source link

Keep All Header Values in Converted Attachment #39

Closed nmmull closed 2 years ago

nmmull commented 2 years ago

A small issue. We currently create a new header for converted attachments that only includes Content-Type, Content-Disposition and Content-Transfer-Encoding. I don't actually think I've ever seen any other headers, but no need to assume there aren't any. We can just take the header of the file we're converting and update it, carrying along all the other header values.

bufordrat commented 2 years ago

Yeah, definitely not a bad idea to copy over all the other headers as well.