aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-18 06:19:14 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-18 06:19:14 +0800
commite255938fa37f56019a0a36a38c490db3677ae595 (patch)
tree2372aef4cc6bf0f9ceb950644a627fce76934ddd /mail/mail-ops.c
parent982357f35cdadf9a823dd1b5a3c0a35bf2ecbdad (diff)
downloadgsoc2013-evolution-e255938fa37f56019a0a36a38c490db3677ae595.tar.gz
gsoc2013-evolution-e255938fa37f56019a0a36a38c490db3677ae595.tar.zst
gsoc2013-evolution-e255938fa37f56019a0a36a38c490db3677ae595.zip
No longer need to copy the description now that camel-exceptions have been
2001-10-17 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_send_message): No longer need to copy the description now that camel-exceptions have been fixed. svn path=/trunk/; revision=13738
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index e0d9836987..e0780d1da3 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -484,14 +484,11 @@ mail_send_message(CamelMimeMessage *message, const char *destination, CamelFilte
NULL, NULL, NULL, "", ex);
if (camel_exception_is_set (ex)) {
- char *description;
ExceptionId id;
id = camel_exception_get_id (ex);
- description = g_strdup (camel_exception_get_description (ex));
- camel_exception_setv (ex, id, "%s\n%s", description,
+ camel_exception_setv (ex, id, "%s\n%s", camel_exception_get_description (ex),
_("However, the message was successfully sent."));
- g_free (description);
camel_message_info_free (info);
g_free (sent_folder_uri);
@@ -516,14 +513,11 @@ mail_send_message(CamelMimeMessage *message, const char *destination, CamelFilte
if (folder) {
camel_folder_append_message (folder, message, info, ex);
if (camel_exception_is_set (ex)) {
- char *description;
ExceptionId id;
id = camel_exception_get_id (ex);
- description = g_strdup (camel_exception_get_description (ex));
- camel_exception_setv (ex, id, "%s\n%s", description,
+ camel_exception_setv (ex, id, "%s\n%s", camel_exception_get_description (ex),
_("However, the message was successfully sent."));
- g_free (description);
}
camel_folder_sync (folder, FALSE, NULL);
d>2-4/+3 * Change the way Perl modules are installed, update the default Perl to 5.18.mat2014-11-262-1/+1 * Clean up plistbapt2014-10-201-4/+0 * - Update to 2.02jadawin2014-09-152-3/+3 * Remove quotes that surrounded entire _DESC strings.adamw2014-07-241-1/+1 * - Update to 2.00jadawin2014-06-162-3/+6 * - Update to 1.96jadawin2013-10-313-6/+5 * - Fix typosunpoet2013-09-201-1/+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-201-7/+2 * - convert to the new perl5 frameworkaz2013-09-161-1/+2 * - Update to 1.92jadawin2013-06-192-8/+4 * - Cleanup outdated checks. (PERL_LEVEL < 5.12)az2013-06-182-20/+0 * - Update to 1.90jadawin2012-09-112-3/+3 * - Remove SITE_PERL from *_DEPENDSjadawin2012-06-051-1/+1 * - Update to 1.88jadawin2012-06-052-6/+9 * - Update to 1.86jadawin2012-05-252-3/+3 * - Revert ports/165605 as requested by portmgr@pgollucci2012-03-142-1/+23 * - Remove ports that only work with < perl 5.12 (devel/p5-B-Size, devel/p5-Dev...pgollucci2012-03-092-23/+1 * - Update to 1.84jadawin2012-03-052-3/+3 * - Update to 1.82jadawin2011-11-222-3/+3 * - Update to 1.80jadawin2011-10-182-3/+3 * - Update to 1.78jadawin2011-09-092-3/+3 * - Replace ../../authors in MASTER_SITE_SUBDIR with CPAN:CPANID macro.az2011-06-201-1/+1 * - Update to 1.76jadawin2011-01-112-3/+4 * - Update to 1.74jadawin2010-12-282-3/+3 * - Update to 1.72jadawin2010-11-192-3/+3 * - Update to 1.70jadawin2010-11-162-5/+3 * Change dependency on old p5-Compress-Zlib, p5-IO-Compress-Base,mm2010-09-211-3/+4 * - Update to 1.68jadawin2010-08-24