Re: [hypermail] Disallow all attachments, but bug/problem

From: Daniel Stenberg <>
Date: Mon, 18 Mar 2002 16:42:18 +0100 (MET)
Message-ID: <>

On Sun, 17 Mar 2002, Ron Pero wrote:

> In my hmrc file, when I have this line, to disallow all attachments:
> ignore_types = *
> the body of the email did not appear in the html page. But there is only
> one message in the mailbox, and it has just one line of text in the body,
> and no attachment.
> But when I comment out that config line:
> #ignore_types = *
> And uncommented this line:
> ignore_types = application/x-msdownload
> Now when I run hypermail, the body of the email DOES appear in the html
> page. Just fine.
> Seems to be a problem.
> But I do want to ignore ALL attachments. I don't need them in the archives,
> and it would prevent any security problem involving attachments.
> What do you think?

I was afraid this was gonna happen, and the reason is quite simple too.

There's no "text part" and "attachment part" in the mail. They're all just a series of parts, each one with its own content-type.

Ignoring all types will make it ignore all parts, including the text parts you most likely didn't want to ignore...

A proper solution would probably be to support an inverted option, like in:

 ignore_types = *
 allow_types = text/plain

... we would just need to define (and document) in which order the types are tested.

      Daniel Stenberg - - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Received on Mon 18 Mar 2002 05:48:42 PM GMT

This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:12 AM GMT GMT