Attachment descriptions and ignore types

From: Paul Haldane <Paul.Haldane_at_newcastle.ac.uk_at_hypermail-project.org>
Date: Thu, 16 Sep 1999 14:34:39 +0100 (GMT)
Message-ID: <Pine.GSO.3.95-960729.990916134404.10549C-200000_at_carr6.ncl.ac.uk>

Running the attached mailbox through
hypermail: Version: 2a24 Patchlevel: 0
with a config file containing
hm_ignore_types = text/x-vcard

gives incorrect output for the second message

      text/enriched attachment: Card for A B

because there's no description given for the mime part in the second message and the description from the first message hasn't been zapped as the vcard was ignored.

I think the fix for this is to reset description to NULL whenever we start processing headers. The following patch to parse.c works for me - fixes the problem and didn't core dump when run on this month's archives, but I've done no more testing than that.

Paul

+       description = NULL;
          for (head = headp; head; head=head->next) {
            if(head->parsedheader || !head->header)
              continue;



From a_at_b.c Sun May 9 09:26:45 1999
Message-ID: <37354723.B228ED7C_at_b.c>
Date: Sun, 09 May 1999 18:28:19 +1000
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="------------CEB5A647C267CE657FB74497" Subject: Distance-learning programmes
From: a_at_b.c
To: list_at_listhost

This is a multi-part message in MIME format.
--------------CEB5A647C267CE657FB74497

Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit

Hello

--------------CEB5A647C267CE657FB74497

Content-Type: text/x-vcard; charset=us-ascii;  name="AB.vcf"

Content-Transfer-Encoding: 7bit
Content-Description: Card for A B
Content-Disposition: attachment;

 filename="AB.vcf"

begin:vcard
n:B;A
adr:;;;;;;
version:2.1
end:vcard

--------------CEB5A647C267CE657FB74497--
From d_at_e.f Mon May 17 00:16:47 1999
Message-Id: <3.0.32.19990517091339.006c197c_at_e.f> Date: Mon, 17 May 1999 09:13:51 +1000
Mime-Version: 1.0
Content-Type: text/enriched; charset="us-ascii" Subject: New study day
From: d_at_e.f
To: list_at_listhost

Yes, and more information would be useful. I am trying to set up Received on Thu 16 Sep 1999 03:38:04 PM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:51 PM GMT GMT