Sorry for not being more clear.
I wasn't talking about mail encodings. I was talking about converting
" < > & to html - that is, the subject after mhonarc has converted it
to html.
DB<2> require './readmail.pl'
DB<3> $sub = 'Is 5 > "five"?'
DB<4> print $sub;
Is 5 > "five"?
DB<5> print readmail::MAILdecode_1522_str($sub)
Is 5 > "five"?
I'd like to get:
Is 5 > "e;five%quote?
Obviously, mhonarc already has this capability somewhere - my question
is just getting access to it from the callback
On 6/22/05, Earl Hood <[EMAIL PROTECTED]> wrote:
> On June 22, 2005 at 16:38, East Coast Coder wrote:
>
> > Is there anyway to get the HTMLized form of the header fields (eg
> > subject, to, from) from within $mhonarc::CBMessageBodyRead?
>
> Call readmail::MAILdecode_1522_str(). For example:
>
> my $html_subject =
> readmail::MAILdecode_1522_str($fields->{'x-mha-subject'});
>
> > PS Does mhonarc make sure to filter out control chars and the like?
>
> Nope. But you can register charset filters to do so. However,
> RFC 2822 allows control chars in headers.
>
> --ewh
>
> ---------------------------------------------------------------------
> To sign-off this list, send email to [EMAIL PROTECTED] with the
> message text UNSUBSCRIBE MHONARC-DEV
>
>
---------------------------------------------------------------------
To sign-off this list, send email to [EMAIL PROTECTED] with the
message text UNSUBSCRIBE MHONARC-DEV