[PATCH] Re: ["PATCH"] Re: Mailfs date problem
Leonard den Ottolander
leonard at den.ottolander.nl
Fri May 26 16:27:46 UTC 2006
Hello Pavel,
On Fri, 2006-05-26 at 15:46 +0300, Pavel Tsekov wrote:
> There is another problem with mail messages which contain in their bodies
> the word From at the start of a line.
The impact of this problem can be reduced by making the match for the
header start line more strict. Still doesn't fix all cases (where there
is a line in the mail body which represent a mail header start line),
but such cases should be escaped by the mail client (by adding a
backslash in front of "From" or by inserting a space in the empty line
before the line starting with "From).
Please test the attached patch for it's impact on execution time. The
match string could be still shortened (to something like
/From\s+\w+(\.\w+)*@/ which still matches most cases).
Leonard.
--
mount -t life -o ro /dev/dna /genetic/research
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailfs-from.patch
Type: text/x-patch
Size: 614 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20060526/2e225b63/attachment.bin>
More information about the mc-devel
mailing list