diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-01-11 18:50:54 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@hemulen.(none)> | 2011-01-11 18:52:13 +0200 |
commit | 88b1e9eff76bf40f9d6a1d7b5ece5acf8f3f6c2f (patch) | |
tree | 9083a957db5f76aba8346f219407d5b0916cfab5 /shell | |
parent | 98494fa7a16c4a18d5ca994062efab16276997b4 (diff) |
Treat MAPI_E_USER_ABORT as success (bnc#660241)
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/win32/simplemail/senddoc.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/shell/source/win32/simplemail/senddoc.cxx b/shell/source/win32/simplemail/senddoc.cxx index 28c378cb8a5f..78f69d3200c2 100644 --- a/shell/source/win32/simplemail/senddoc.cxx +++ b/shell/source/win32/simplemail/senddoc.cxx @@ -301,6 +301,20 @@ int main(int argc, char* argv[]) ulRet = mapi.MAPISendMail(hSession, 0, &mapiMsg, gMapiFlags, 0); + // There is no point in treating an aborted mail sending + // dialog as an error to be returned as our exit + // status. If the user decided to abort sending a document + // as mail, OK, that is not an error. + + // Also, it seems that GroupWise makes MAPISendMail() + // return MAPI_E_USER_ABORT even if the mail sending + // dialog was not aborted by the user, and the mail was + // actually sent just fine. See bnc#660241 (visible to + // Novell people only, sorry). + + if (ulRet == MAPI_E_USER_ABORT) + ulRet = SUCCESS_SUCCESS; + mapi.MAPILogoff(hSession, 0, 0, 0); } } |