tag 520344 patch 
version 520344 2.0.4-3
version 520344 2.5.5-1
version 520344 2.5.5-2
thanks

Hi,

I checked this source and found the bug :-)

It is in maildrop/formatmbox.C  where pointer skipping excess
whitespaces (but not banklines) at the start of line.

Patch is for upstream 2.5.5 version.  Probably, 2.0.3 version was nit
using "bufp->append(p, l);" but makig simple assignment.

So this patch should fix to match only ^From: but if this header exist
twice, those contents are concatnated (without space).

Osamu
--- formatmbox.C.orig	2012-06-17 14:42:59.176829893 +0900
+++ formatmbox.C	2012-06-17 14:50:50.135165248 +0900
@@ -85,7 +85,6 @@
 	const char *p=msglinebuf;
 	Buffer	*bufp=0;
 
-		while (*p != '\n' && isspace(*p))	p++;
 		if ( tolower(*p) == 'f' && tolower(p[1]) == 'r' &&
 			tolower(p[2]) == 'o' && tolower(p[3]) == 'm' &&
 			p[4] == ':')

Reply via email to