aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;