check for .EML files on the command line as well as .eml, part of 242959, sr=mscott

This commit is contained in:
bienvenu%nventure.com 2006-08-25 15:40:58 +00:00
parent ad45cd58c5
commit 72956f8dab

View File

@ -55,6 +55,7 @@
#include "nsString.h"
#include "nsIURI.h"
#include "nsIDialogParamBlock.h"
#include "nsUnicharUtils.h"
#ifdef MOZ_XUL_APP
#include "nsICommandLine.h"
#include "nsILocalFile.h"
@ -133,7 +134,7 @@ nsMessengerBootstrap::Handle(nsICommandLine* aCmdLine)
{
nsAutoString arg;
aCmdLine->GetArgument(0, arg);
if (StringEndsWith(arg, NS_LITERAL_STRING(".eml")))
if (StringEndsWith(arg, NS_LITERAL_STRING(".eml"), nsCaseInsensitiveStringComparator()))
{
nsCOMPtr<nsILocalFile> file(do_CreateInstance("@mozilla.org/file/local;1"));
NS_ENSURE_TRUE(file, NS_ERROR_FAILURE);