Skip Menu |

This queue is for tickets about the MIME-Lite CPAN distribution.

Report information
The Basics
Id: 89716
Status: open
Priority: 0/
Queue: MIME-Lite

People
Owner: Nobody in particular
Requestors: fink [...] ch.pkts.ca
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Documentation request: Why is something 'dangerous'?
Date: Wed, 23 Oct 2013 09:58:12 -0700
To: bug-MIME-Lite [...] rt.cpan.org
From: "P Fudd" <fink [...] ch.pkts.ca>
Hello! I like using MIME::Lite; it gets the job done quickly and easily. Recently, I attempted to set the content-type.charset from the attach() function: $body->attach( Type => 'text/html', Data => slurp($INFILE), 'content-type.charset' => 'UTF-8' ); However, it gives a warning message: "Explicitly setting a MIME header field (content-type.charset) is dangerous: use the attr() method instead." I've googled hard, but I cannot understand why this is dangerous. Could you update the documentation to explain this? In addition, I don't actually see a way to set the content-type.charset of an HTML attachment; how are you supposed to do that? Thanks!
I didn't write it and don't know why offhand. My guess is that it will not update things everywhere required, or will not update related structures automatically. I will leave this ticket open for future researchers to add an answer. -- rjbs