houseabsolute / Log-Dispatch

Dispatches messages to one or more outputs
https://metacpan.org/release/Log-Dispatch/
Other
12 stars 29 forks source link

Specify "Content-Type" for e-mail based logs #25

Open autarch opened 7 years ago

autarch commented 7 years ago

Migrated from rt.cpan.org #25255 (status was 'new')

Requestors:

Attachments:

From gtermars@cpan.org on 2007-03-02 21:26:55:

It'd be really nice if we could set the "Content-Type" for e-mail based logs. Admittedly the common case is "text/plain", but being able to set "text/html" and then use a callback to turn the text into HTML would be useful.

autarch commented 7 years ago

From gtermars@cpan.org on 2007-03-02 21:38:30:

I've attached an untested patch here which adds support for setting the "Content-Type" for e-mail based logs. Unless explicitly provided, the Content-Type defaults to "text/plain", to preserve existing behaviour.