This patch should, as far as I can see, make MHonArc conform to
RFC1522, atleast for the iso-8859-1 charset.
diff -u --recursive MHonArc/lib/readmail.pl MHonArc.1522/lib/readmail.pl
--- MHonArc/lib/readmail.pl Thu Mar 21 20:33:16 1996
+++ MHonArc.1522/lib/readmail.pl Tue May 28 19:11:29 1996
@@ -392,6 +392,18 @@
$/ = "\n"; $label = '';
$header = ''; %fields = (); %l2o = ();
while (($tmp = <$handle>) !~ /^[\r]?$/) {
+ while($tmp =~ /=\?([^?])+\?(.)\?(.*)\?=/){
+ local($charset, $encoding) = ($1, $2);
+ local($tmptxt, $tmp_after);
+ $tmptxt = $3; $tmp = $`; $tmp_after = $';
+ $tmptxt =~ s/_/ /g;
+ if($encoding =~ /b/i){
+ $dec = $'MIMEDecoders{"base64"};
+ }else{
+ $dec = $'MIMEDecoders{"quoted-printable"};
+ }
+ $tmp .= &$dec($tmptxt) . $tmp_after;
+ }
$header .= $tmp;
$tmp =~ s/\n/ /g;
/Rune