diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-02-06 03:55:54 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-02-06 03:55:54 +0800 |
commit | ddfc033633f5db2c7f2c1a4de179d9029cbf1a6f (patch) | |
tree | 65cffcdf719d71a55a351122afc51d7be6d465fa /camel/providers/smtp/camel-smtp-transport.c | |
parent | e582e23949ac7cb3e4d72ee50957a105ce30e1be (diff) | |
download | gsoc2013-evolution-ddfc033633f5db2c7f2c1a4de179d9029cbf1a6f.tar.gz gsoc2013-evolution-ddfc033633f5db2c7f2c1a4de179d9029cbf1a6f.tar.zst gsoc2013-evolution-ddfc033633f5db2c7f2c1a4de179d9029cbf1a6f.zip |
Updated.
2001-02-05 Jeffrey Stedfast <fejj@ximian.com>
* providers/smtp/camel-smtp-transport.c (query_auth_types): Updated.
* providers/nntp/camel-nntp-store.c (nntp_store_query_auth_types):
Updated.
* providers/pop3/camel-pop3-store.c (query_auth_types): Updated.
* providers/imap/camel-imap-store.c (query_auth_types): Updated.
* camel-service.c (camel_service_query_auth_types): Now takes a
boolean value to specify whether or not to connect when
constructing a supported authtype list.
svn path=/trunk/; revision=7979
Diffstat (limited to 'camel/providers/smtp/camel-smtp-transport.c')
-rw-r--r-- | camel/providers/smtp/camel-smtp-transport.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c index b879eb75fc..1d7b4e5622 100644 --- a/camel/providers/smtp/camel-smtp-transport.c +++ b/camel/providers/smtp/camel-smtp-transport.c @@ -56,15 +56,15 @@ #define SMTP_PORT 25 /* camel smtp transport class prototypes */ -static gboolean _can_send (CamelTransport *transport, CamelMedium *message); -static gboolean _send (CamelTransport *transport, CamelMedium *message, CamelException *ex); -static gboolean _send_to (CamelTransport *transport, CamelMedium *message, GList *recipients, CamelException *ex); +static gboolean smtp_can_send (CamelTransport *transport, CamelMedium *message); +static gboolean smtp_send (CamelTransport *transport, CamelMedium *message, CamelException *ex); +static gboolean smtp_send_to (CamelTransport *transport, CamelMedium *message, GList *recipients, CamelException *ex); /* support prototypes */ static gboolean smtp_connect (CamelService *service, CamelException *ex); static gboolean smtp_disconnect (CamelService *service, gboolean clean, CamelException *ex); -static GList *esmtp_get_authtypes(gchar *buffer); -static GList *query_auth_types (CamelService *service, CamelException *ex); +static GList *esmtp_get_authtypes (gchar *buffer); +static GList *query_auth_types (CamelService *service, gboolean connect, CamelException *ex); static void free_auth_types (CamelService *service, GList *authtypes); static char *get_name (CamelService *service, gboolean brief); @@ -97,9 +97,9 @@ camel_smtp_transport_class_init (CamelSmtpTransportClass *camel_smtp_transport_c camel_service_class->free_auth_types = free_auth_types; camel_service_class->get_name = get_name; - camel_transport_class->can_send = _can_send; - camel_transport_class->send = _send; - camel_transport_class->send_to = _send_to; + camel_transport_class->can_send = smtp_can_send; + camel_transport_class->send = smtp_send; + camel_transport_class->send_to = smtp_send_to; } static void @@ -356,7 +356,7 @@ static CamelServiceAuthType cram_md5_authtype = { #endif static GList * -query_auth_types (CamelService *service, CamelException *ex) +query_auth_types (CamelService *service, gboolean connect, CamelException *ex) { /* FIXME: Re-enable this when auth types are actually * implemented. @@ -383,14 +383,14 @@ get_name (CamelService *service, gboolean brief) } static gboolean -_can_send (CamelTransport *transport, CamelMedium *message) +smtp_can_send (CamelTransport *transport, CamelMedium *message) { return CAMEL_IS_MIME_MESSAGE (message); } static gboolean -_send_to (CamelTransport *transport, CamelMedium *message, - GList *recipients, CamelException *ex) +smtp_send_to (CamelTransport *transport, CamelMedium *message, + GList *recipients, CamelException *ex) { CamelSmtpTransport *smtp_transport = CAMEL_SMTP_TRANSPORT (transport); const CamelInternetAddress *cia; @@ -450,7 +450,7 @@ _send_to (CamelTransport *transport, CamelMedium *message, } static gboolean -_send (CamelTransport *transport, CamelMedium *message, CamelException *ex) +smtp_send (CamelTransport *transport, CamelMedium *message, CamelException *ex) { const CamelInternetAddress *to, *cc, *bcc; GList *recipients = NULL; @@ -487,7 +487,7 @@ _send (CamelTransport *transport, CamelMedium *message, CamelException *ex) recipients = g_list_append (recipients, g_strdup (addr)); } - return _send_to (transport, message, recipients, ex); + return smtp_send_to (transport, message, recipients, ex); } static gboolean |