aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-06-19 06:28:57 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-06-19 06:28:57 +0800
commit26e2b46cf03b396eab403c740c81646811ccb5d9 (patch)
tree472b60f7677e9eb5543c8650ea38b1218b99f053 /mail/mail-callbacks.c
parent9fd21cb07d037e290d783edb77cf6395806c2ef4 (diff)
downloadgsoc2013-evolution-26e2b46cf03b396eab403c740c81646811ccb5d9.tar
gsoc2013-evolution-26e2b46cf03b396eab403c740c81646811ccb5d9.tar.gz
gsoc2013-evolution-26e2b46cf03b396eab403c740c81646811ccb5d9.tar.bz2
gsoc2013-evolution-26e2b46cf03b396eab403c740c81646811ccb5d9.tar.lz
gsoc2013-evolution-26e2b46cf03b396eab403c740c81646811ccb5d9.tar.xz
gsoc2013-evolution-26e2b46cf03b396eab403c740c81646811ccb5d9.tar.zst
gsoc2013-evolution-26e2b46cf03b396eab403c740c81646811ccb5d9.zip
Use a nice switch statement and use the new enum values.
2001-06-18 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (destination_folder_handle_drop): Use a nice switch statement and use the new enum values. * mail-callbacks.c (list_add_addresses): Now takes a hash table of already-used-recipients so that we don't get duplicates. (mail_generate_reply): Pass in a rcpt_hash argument to list_add_addresses(). These changes fix bug #1639. svn path=/trunk/; revision=10282
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 0e3faa0711..0bfd8b7305 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -504,7 +504,7 @@ list_add_addresses (GList *list, const CamelInternetAddress *cia, const GSList *
}
if (notme && !g_hash_table_lookup (rcpt_hash, addr)) {
- g_hash_table_insert (rcpt_hash, g_strdup (addr), GINT_TO_POINTER (1));
+ g_hash_table_insert (rcpt_hash, (char *) addr, GINT_TO_POINTER (1));
list = g_list_append (list, full);
} else
g_free (full);
@@ -658,7 +658,7 @@ mail_generate_reply (CamelFolder *folder, CamelMimeMessage *message, const char
/* Get the Reply-To address so we can ignore references to it in the Cc: list */
camel_internet_address_get (reply_to, 0, NULL, &reply_addr);
- g_hash_table_insert (rcpt_hash, reply_addr, GINT_TO_POINTER (1));
+ g_hash_table_insert (rcpt_hash, (char *) reply_addr, GINT_TO_POINTER (1));
to = g_list_append (to, camel_address_format (CAMEL_ADDRESS (reply_to)));
}