diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2004-05-12 05:25:17 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-05-12 05:25:17 +0800 |
commit | 3957b2480e8f4c50812c99b59236a35d2f5bdfe3 (patch) | |
tree | 846f87e54f43fcdcbada64d014e7a237161df130 | |
parent | a1274d36fd9dcd9ab405816405d1e3607ca0e8d2 (diff) | |
download | gsoc2013-evolution-3957b2480e8f4c50812c99b59236a35d2f5bdfe3.tar.gz gsoc2013-evolution-3957b2480e8f4c50812c99b59236a35d2f5bdfe3.tar.zst gsoc2013-evolution-3957b2480e8f4c50812c99b59236a35d2f5bdfe3.zip |
Use CAMEL_EXCEPTION_SYSTEM instead of '1', also don't use
2004-05-11 Jeffrey Stedfast <fejj@novell.com>
* e-msg-composer.c (build_message): Use CAMEL_EXCEPTION_SYSTEM
instead of '1', also don't use camel_exception_setv() if we aren't
using the printf-style arguments. Just use camel_exception_set() -
safer anyway, since then we don't have to worry about translated
strings containing printf-style formatters that could break stuff.
svn path=/trunk/; revision=25861
-rw-r--r-- | composer/ChangeLog | 8 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 8 |
2 files changed, 13 insertions, 3 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index 50e9af6afb..5cb0cd874d 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,11 @@ +2004-05-11 Jeffrey Stedfast <fejj@novell.com> + + * e-msg-composer.c (build_message): Use CAMEL_EXCEPTION_SYSTEM + instead of '1', also don't use camel_exception_setv() if we aren't + using the printf-style arguments. Just use camel_exception_set() - + safer anyway, since then we don't have to worry about translated + strings containing printf-style formatters that could break stuff. + 2004-05-08 Enver ALTIN <enver.altin@frontsite.com.tr> * e-msg-composer.c: Fixing parts of #53466. diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index ef30c38ec4..6f4348bd0f 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -700,13 +700,15 @@ build_message (EMsgComposer *composer, gboolean save_html_object_data) if (composer->smime_sign && (hdrs->account == NULL || hdrs->account->smime_sign_key == NULL || hdrs->account->smime_sign_key[0] == 0)) { - camel_exception_setv(&ex, 1, _("Cannot sign outgoing message: No signing certificate set for this account")); + camel_exception_set (&ex, CAMEL_EXCEPTION_SYSTEM, + _("Cannot sign outgoing message: No signing certificate set for this account")); goto exception; } - + if (composer->smime_encrypt && (hdrs->account == NULL || hdrs->account->smime_sign_key == NULL || hdrs->account->smime_sign_key[0] == 0)) { - camel_exception_setv(&ex, 1, _("Cannot encrypt outgoing message: No encryption certificate set for this account")); + camel_exception_set (&ex, CAMEL_EXCEPTION_SYSTEM, + _("Cannot encrypt outgoing message: No encryption certificate set for this account")); goto exception; } |