From e255938fa37f56019a0a36a38c490db3677ae595 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 17 Oct 2001 22:19:14 +0000 Subject: No longer need to copy the description now that camel-exceptions have been 2001-10-17 Jeffrey Stedfast * 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 --- mail/mail-ops.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'mail/mail-ops.c') 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); -- cgit v1.2.3