On September 22, 1998 at 22:13, Hasan Karahasan, DJ2xt wrote:
> We are converting our mailing list with Mhonarc. Though we do not want
> simple mails be written as attachments there are some stupids who put
> simple text mails in attachments. And there are some using those mailers
> like exchange or outlook that always produce multipart messages with the
> first part being the mail itself and the second part something like
> "application/ms/tnef" or so. That's lots of binary scrap for those who
> do not use the same programm.
>
> Is there a way to prevent Mhonarc from processing certain mails like
> those described? For example, can I tell Mhonarc to skip mails having a
> string like "multipart" in its header?
You may want to look into the MIMEFILTERS resource. Instead of
completely disregarding all multipart messages, you may just want to
exclude certain media-types from being decoded, like
application/ms-tnef.
With v2.3 (and posted to this list) is a filter library mhnull.pl
which can be registered for media-types to have MHonArc disregard
certain media-types. For example, to have all application/ms-tnef
data ignored, use the following:
<MIMEFilters>
application/ms-tnef; m2h_null::filter; mhnull.pl
</MIMEFilters>
--ewh
----
Earl Hood | University of California: Irvine
[EMAIL PROTECTED] | Electronic Loiterer
http://www.oac.uci.edu/indiv/ehood/ | Dabbler of SGML/WWW/Perl/MIME