summaryrefslogtreecommitdiff
path: root/shell/source/cmdmail/cmdmailsuppl.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-01-20 12:29:23 +0000
committerOliver Bolte <obo@openoffice.org>2006-01-20 12:29:23 +0000
commite7b3a23339d900437ea898e945792b9f4e11768c (patch)
tree8e6fbdb69a02ff350514e46aae7909f6183793c5 /shell/source/cmdmail/cmdmailsuppl.cxx
parentd88aefb55ccf6ce218abf8dc31c2a4a2cdc8c04c (diff)
INTEGRATION: CWS macosx20xfixes01 (1.10.20); FILE MERGED
2006/01/08 19:41:09 obr 1.10.20.3: #i57043# specify Mail without path 2005/10/27 09:40:28 ericb 1.10.20.2: #i54440# fix for non attached mails when using Send an email function 2005/10/27 08:56:52 ericb 1.10.20.1: #i54948# change to make possible send active document on Mac OS X
Diffstat (limited to 'shell/source/cmdmail/cmdmailsuppl.cxx')
-rwxr-xr-xshell/source/cmdmail/cmdmailsuppl.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/shell/source/cmdmail/cmdmailsuppl.cxx b/shell/source/cmdmail/cmdmailsuppl.cxx
index f37d70ebc572..f594f99aef01 100755
--- a/shell/source/cmdmail/cmdmailsuppl.cxx
+++ b/shell/source/cmdmail/cmdmailsuppl.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: cmdmailsuppl.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: rt $ $Date: 2005-09-07 19:51:53 $
+ * last change: $Author: obo $ $Date: 2006-01-20 13:29:23 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -191,6 +191,7 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM
}
OStringBuffer aBuffer;
+ aBuffer.append("\"");
OUString aProgramURL;
if ( osl_Process_E_None != osl_getExecutableFile(&aProgramURL.pData) )
@@ -216,7 +217,7 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM
if (nIndex > 0)
aBuffer.append(aTmp.copy(0, nIndex+1));
- aBuffer.append("senddoc ");
+ aBuffer.append("senddoc\" ");
try
{
@@ -257,6 +258,10 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM
aBuffer.append(OUStringToOString( aMailer, osl_getThreadTextEncoding() ));
aBuffer.append(" ");
}
+#ifdef MACOSX
+ else
+ aBuffer.append("--mailclient Mail ");
+#endif
}
}
@@ -322,7 +327,7 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM
if ( FileBase::E_None == FileBase::getSystemPathFromFileURL(aStringList[n], aSystemPath) )
{
aBuffer.append("--attach \"");
- aBuffer.append(OUStringToOString(aSystemPath, RTL_TEXTENCODING_UTF8));
+ aBuffer.append(OUStringToOString(aSystemPath, osl_getThreadTextEncoding()));
aBuffer.append("\" ");
}
}