Skip Menu |
 

This queue is for tickets about the Mail-IMAPClient CPAN distribution.

Report information
The Basics
Id: 124173
Status: new
Priority: 0/
Queue: Mail-IMAPClient

People
Owner: Nobody in particular
Requestors: MARKOV [...] cpan.org
Cc:
AdminCc:

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



Subject: Automatic support MIME-Header decode
Download (untitled) / with headers
text/plain 692b
See other ticket: in my real-life code, I see a complication which we can take out of the hands of a end-user. The message headers are encoded. This can be really complex (I have implemented encoding and decoding for Mail::Box). To handle the headers correctly, you are currently obliged to do this: my $from = decode('MIME-Header', $imap->get_header($msgnr, "From")); my $subject = decode('MIME-Header', $imap->subject($msgnr)); Could we add '$imap->decode_header($msgnr, $field)' like this: sub decode_header($$) { my ($self, $msgnr, $field) = @_; my $header = $self->get_header($msgnr, $field); defined $header ? decode('MIME-Header', $header) : undef; }


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.