aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-06-22 01:19:00 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-06-22 01:19:00 +0800
commit1b2f9e9c120f8bf75fad41e669110ce73c54d304 (patch)
treea1b88fd11f9278fdead34dcf03d3f67caf01401a /camel/providers
parent299a48043141eaef48d0ac51858314d42787e721 (diff)
downloadgsoc2013-evolution-1b2f9e9c120f8bf75fad41e669110ce73c54d304.tar.gz
gsoc2013-evolution-1b2f9e9c120f8bf75fad41e669110ce73c54d304.tar.zst
gsoc2013-evolution-1b2f9e9c120f8bf75fad41e669110ce73c54d304.zip
Use camel_address_length() rather than casting and accessing data members.
2001-06-21 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (smtp_send): Use camel_address_length() rather than casting and accessing data members. svn path=/trunk/; revision=10365
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/smtp/camel-smtp-transport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c
index 0d1ef1e95e..9cd5d4ba6a 100644
--- a/camel/providers/smtp/camel-smtp-transport.c
+++ b/camel/providers/smtp/camel-smtp-transport.c
@@ -617,7 +617,7 @@ smtp_send (CamelTransport *transport, CamelMedium *message, CamelException *ex)
bcc = camel_mime_message_get_recipients (CAMEL_MIME_MESSAGE (message), CAMEL_RECIPIENT_TYPE_BCC);
/* get all of the To addresses into our recipient list */
- len = CAMEL_ADDRESS (to)->addresses->len;
+ len = camel_address_length (CAMEL_ADDRESS (to));
for (index = 0; index < len; index++) {
const char *addr;
@@ -626,7 +626,7 @@ smtp_send (CamelTransport *transport, CamelMedium *message, CamelException *ex)
}
/* get all of the Cc addresses into our recipient list */
- len = CAMEL_ADDRESS (cc)->addresses->len;
+ len = camel_address_length (CAMEL_ADDRESS (cc));
for (index = 0; index < len; index++) {
const char *addr;
@@ -635,7 +635,7 @@ smtp_send (CamelTransport *transport, CamelMedium *message, CamelException *ex)
}
/* get all of the Bcc addresses into our recipient list */
- len = CAMEL_ADDRESS (bcc)->addresses->len;
+ len = camel_address_length (CAMEL_ADDRESS (bcc));
for (index = 0; index < len; index++) {
const char *addr;