From 8a860b0ebc5c22c63d8c148fd6279a9e8884c3f1 Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Wed, 1 Feb 2006 00:49:10 +0000 Subject: [PATCH] Bug #316177 --> command line optiosn for -compose broken. patch by chandong.cui@sun.com r=bsmedberg sr=mscott --- mailnews/compose/src/nsMsgComposeService.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mailnews/compose/src/nsMsgComposeService.cpp b/mailnews/compose/src/nsMsgComposeService.cpp index a277529ff267..cb711f43ffbe 100644 --- a/mailnews/compose/src/nsMsgComposeService.cpp +++ b/mailnews/compose/src/nsMsgComposeService.cpp @@ -1387,7 +1387,12 @@ nsMsgComposeService::Handle(nsICommandLine* aCmdLine) if (count >= found) { aCmdLine->GetArgument(found + 1, uristr); - if (StringBeginsWith(uristr, NS_LITERAL_STRING("mailto:"))) { + if (StringBeginsWith(uristr, NS_LITERAL_STRING("mailto:")) || + StringBeginsWith(uristr, NS_LITERAL_STRING("to=")) || + StringBeginsWith(uristr, NS_LITERAL_STRING("cc=")) || + StringBeginsWith(uristr, NS_LITERAL_STRING("subject=")) || + StringBeginsWith(uristr, NS_LITERAL_STRING("body=")) || + StringBeginsWith(uristr, NS_LITERAL_STRING("attachment="))) { end++; // mailto: URIs are frequently passed with spaces in them. They should be // escaped with %20, but we hack around broken clients. See bug 231032.