mhonarc-dev

Re: Getting HTMLized Subject in the callbacks

2005-06-22 14:35:57
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 majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV

<Prev in Thread] Current Thread [Next in Thread>