aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorEDT 2000 Jeffrey Stedfast <fejj@stampede.org>2000-05-09 20:56:51 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-05-09 20:56:51 +0800
commita07fe2730b8ce75e6269f771f63a66c5cb094326 (patch)
treeb28b8e26b9b755a772ab6f0da90e63f7669a3828 /camel/providers
parentee595f4b98e8971224781061f96a46744f8d35f3 (diff)
downloadgsoc2013-evolution-a07fe2730b8ce75e6269f771f63a66c5cb094326.tar
gsoc2013-evolution-a07fe2730b8ce75e6269f771f63a66c5cb094326.tar.gz
gsoc2013-evolution-a07fe2730b8ce75e6269f771f63a66c5cb094326.tar.bz2
gsoc2013-evolution-a07fe2730b8ce75e6269f771f63a66c5cb094326.tar.lz
gsoc2013-evolution-a07fe2730b8ce75e6269f771f63a66c5cb094326.tar.xz
gsoc2013-evolution-a07fe2730b8ce75e6269f771f63a66c5cb094326.tar.zst
gsoc2013-evolution-a07fe2730b8ce75e6269f771f63a66c5cb094326.zip
o Moved struct_address from camel-internet-address.c to
Tue May 9 09:03:18 EDT 2000 Jeffrey Stedfast <fejj@stampede.org> o Moved struct_address from camel-internet-address.c to camel-internet-address.h (so it could be used in providers/smtp/camel-smtp-transport.h) o providers/smtp/camel-smtp-transport.c _send should now work like it was meant to CVS svn path=/trunk/; revision=2937
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/smtp/camel-smtp-transport.c29
1 files changed, 26 insertions, 3 deletions
diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c
index ed7b3fb2be..a19e1903c6 100644
--- a/camel/providers/smtp/camel-smtp-transport.c
+++ b/camel/providers/smtp/camel-smtp-transport.c
@@ -313,13 +313,36 @@ _send (CamelTransport *transport, CamelMedium *message,
{
const CamelInternetAddress *to, *cc, *bcc;
GList *recipients = NULL;
+ struct _address *addr;
+ guint index, len;
- /* TODO: we want to dump all recipient addresses into a GList */
to = camel_mime_message_get_recipients ((CamelMimeMessage *) message, CAMEL_RECIPIENT_TYPE_TO);
cc = camel_mime_message_get_recipients ((CamelMimeMessage *) message, CAMEL_RECIPIENT_TYPE_CC);
bcc = camel_mime_message_get_recipients ((CamelMimeMessage *) message, CAMEL_RECIPIENT_TYPE_BCC);
- /*recipients = g_list_concat(to, cc);
- recipients = g_list_concat(recipients, bcc);*/
+
+ /* get all of the To addresses into our recipient list */
+ len = ((CamelAddress *)to)->addresses->len;
+ for (index = 0; index < len; index++)
+ {
+ addr = g_ptr_array_index( ((CamelAddress *)to)->addresses, index);
+ recipients = g_list_append(recipients, g_strdup(addr->address));
+ }
+
+ /* get all of the Cc addresses into our recipient list */
+ len = ((CamelAddress *)cc)->addresses->len;
+ for (index = 0; index < len; index++)
+ {
+ addr = g_ptr_array_index( ((CamelAddress *)cc)->addresses, index);
+ recipients = g_list_append(recipients, g_strdup(addr->address));
+ }
+
+ /* get all of the Bcc addresses into our recipient list */
+ len = ((CamelAddress *)bcc)->addresses->len;
+ for (index = 0; index < len; index++)
+ {
+ addr = g_ptr_array_index( ((CamelAddress *)bcc)->addresses, index);
+ recipients = g_list_append(recipients, g_strdup(addr->address));
+ }
return _send_to (transport, message, recipients, ex);
}