mhonarc-users

Re: Content Type Problem

1997-01-13 03:15:36
Brett Schlank wrote:
I got this error under MHonArcv1.2.3:

     Could not process message with given Content-Type: 
     text/enriched; charset="us-ascii" 

Any ideas on how to add/correct this content type?

Thanks in advance!

-- Brett

I use a __very primitive__ hack:

% cat lib/m2h_text_richtext.pl

package m2h_text_richtext;

# primitive mhonarc converter for:
#       text/enriched
#       text/richtext
# Bugs:
#   - almost everything is treated wrong but at least not everything :-)

sub filter {
    local($header, *fields, *data, $isdecode, $args) = @_;

    $data =~ s|<(/?)italic>|<$1IT>|img;
    $data =~ s|<(/?)bold>|<$1B>|img;
    $data =~ s|<(/?)fixed>|<$1CODE>|img;
    $data =~ s|\n\s*\n\s*\n|<P>\n|img;
    $data =~ s|\n\s*\n|<BR>\n|img;
    $data;
}
1;
__END__

To use it add these lines to you mhonarc.rc file:

<mimefilters>
text/richtext:m2h_text_richtext'filter:m2h_text_richtext.pl
text/enriched:m2h_text_richtext'filter:m2h_text_richtext.pl
</mimefilters>

Achim

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