Bug#61342: your mail
On Wed, Mar 16, 2005 at 08:24:56PM +0000, Colin Watson wrote:
> Do we need to re-RFC1522-encode headers in outgoing messages? I think we
> probably do. MIME::Words knows how to do that, and despite the warning
> in its documentation I think the encode_mimewords() function is safe for
> encoding from UTF-8.
How about this as a simple encode function?
sub encode_rfc1522 ($)
my ($string) = @_;
return MIME::Words::encode_mimewords($string, Charset => 'UTF-8');
(I've renamed de_rfc1522 to decode_rfc1522 to allow a sensible name for
Colin Watson [firstname.lastname@example.org]