aboutsummaryrefslogtreecommitdiffstats
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
parent299a48043141eaef48d0ac51858314d42787e721 (diff)
downloadgsoc2013-evolution-1b2f9e9c120f8bf75fad41e669110ce73c54d304.tar
gsoc2013-evolution-1b2f9e9c120f8bf75fad41e669110ce73c54d304.tar.gz
gsoc2013-evolution-1b2f9e9c120f8bf75fad41e669110ce73c54d304.tar.bz2
gsoc2013-evolution-1b2f9e9c120f8bf75fad41e669110ce73c54d304.tar.lz
gsoc2013-evolution-1b2f9e9c120f8bf75fad41e669110ce73c54d304.tar.xz
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
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/providers/smtp/camel-smtp-transport.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 285727f5fe..d3e4ad5f20 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2001-06-20 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (header_raw_check_mailing_list): If the first
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;