![]()
From: Paul Haldane (Paul.Haldane@newcastle.ac.uk)
Date: Thu Sep 16 1999 - 08:34:39 CDT
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
*** ../../hypermail-daily-1999-09-16/src/parse.c Thu Sep 9
14:53:24 1999
--- parse.c Thu Sep 16 13:45:56 1999
***************
*** 1231,1236 ****
--- 1231,1237 ----
attach_force = FALSE;
/*@@ */
+ description = NULL;
for (head = headp; head; head=head->next) {
if(head->parsedheader || !head->header)
continue;
From a@b.c Sun May 9 09:26:45 1999
Message-ID: <37354723.B228ED7C@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@b.c
To: list@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@e.f Mon May 17 00:16:47 1999
Message-Id: <3.0.32.19990517091339.006c197c@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@e.f
To: list@listhost
Yes, and more information would be useful. I am trying to set up
![]()