From 8f35fbb6407432bb84ff7022d21262025c805a11 Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Fri, 19 Oct 2007 02:12:43 +0000 Subject: [PATCH] fix import of eudora files with leading spaces in the name, patch by beckley@qualcomm.com, r/sr=bienvenu 331708 --- mailnews/import/eudora/src/nsEudoraWin32.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mailnews/import/eudora/src/nsEudoraWin32.cpp b/mailnews/import/eudora/src/nsEudoraWin32.cpp index 9ffc7fee0e5..8e143a151f3 100644 --- a/mailnews/import/eudora/src/nsEudoraWin32.cpp +++ b/mailnews/import/eudora/src/nsEudoraWin32.cpp @@ -361,7 +361,9 @@ nsresult nsEudoraWin32::ScanDescmap( nsIFile *pFolder, nsISupportsArray *pArray, fName.Truncate(); if (fieldLen) fName.Append( pStart, fieldLen); - fName.Trim( kWhitespace); + // Descmap file name is written without any extraneous white space - i.e. + // if there's whitespace present it's intentional and important. Don't + // strip whitespace from the fName. pos++; pData++; pStart = pData;