fix 314297, deleting mime part 1.x also deletes 1.x0, 1.x1, 1.x2, etc instead of just 1.x.1, 1.x.2...

This commit is contained in:
bienvenu%nventure.com 2006-10-31 19:56:39 +00:00
Родитель 437ed1282f
Коммит 097972215c
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -207,7 +207,8 @@ MimeMultipart_parse_line (const char *line, PRInt32 length, MimeObject *obj)
// check if this is a sub-part of a part we're stripping.
for (PRInt32 partIndex = 0; partIndex < obj->options->state->partsToStrip.Count(); partIndex++)
{
if (newPart.Find(*obj->options->state->partsToStrip.CStringAt(partIndex)) == 0)
nsCString *curPartToStrip = obj->options->state->partsToStrip.CStringAt(partIndex);
if (newPart.Find(*curPartToStrip) == 0 && (newPart.Length() == curPartToStrip->Length() || newPart.CharAt(curPartToStrip->Length()) == '.'))
{
obj->options->state->strippingPart = PR_TRUE;
if (partIndex < obj->options->state->detachToFiles.Count())