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/sendmail | |
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/sendmail')
-rw-r--r-- | camel/providers/sendmail/camel-sendmail-transport.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/camel/providers/sendmail/camel-sendmail-transport.c b/camel/providers/sendmail/camel-sendmail-transport.c index 137c1d32a9..d76edfeca9 100644 --- a/camel/providers/sendmail/camel-sendmail-transport.c +++ b/camel/providers/sendmail/camel-sendmail-transport.c @@ -3,8 +3,7 @@ /* * - * Author : - * Dan Winship <danw@helixcode.com> + * Authors: Dan Winship <danw@helixcode.com> * * Copyright 2000 Helix Code, Inc. (http://www.helixcode.com) * @@ -41,11 +40,11 @@ static char *get_name (CamelService *service, gboolean brief); -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 sendmail_can_send (CamelTransport *transport, CamelMedium *message); +static gboolean sendmail_send (CamelTransport *transport, CamelMedium *message, + CamelException *ex); +static gboolean sendmail_send_to (CamelTransport *transport, CamelMedium *message, + GList *recipients, CamelException *ex); static void @@ -59,9 +58,9 @@ camel_sendmail_transport_class_init (CamelSendmailTransportClass *camel_sendmail /* virtual method overload */ 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 = sendmail_can_send; + camel_transport_class->send = sendmail_send; + camel_transport_class->send_to = sendmail_send_to; } CamelType @@ -70,13 +69,14 @@ camel_sendmail_transport_get_type (void) static CamelType camel_sendmail_transport_type = CAMEL_INVALID_TYPE; if (camel_sendmail_transport_type == CAMEL_INVALID_TYPE) { - camel_sendmail_transport_type = camel_type_register (CAMEL_TRANSPORT_TYPE, "CamelSendmailTransport", - sizeof (CamelSendmailTransport), - sizeof (CamelSendmailTransportClass), - (CamelObjectClassInitFunc) camel_sendmail_transport_class_init, - NULL, - (CamelObjectInitFunc) NULL, - NULL); + camel_sendmail_transport_type = + camel_type_register (CAMEL_TRANSPORT_TYPE, "CamelSendmailTransport", + sizeof (CamelSendmailTransport), + sizeof (CamelSendmailTransportClass), + (CamelObjectClassInitFunc) camel_sendmail_transport_class_init, + NULL, + (CamelObjectInitFunc) NULL, + NULL); } return camel_sendmail_transport_type; @@ -84,14 +84,14 @@ camel_sendmail_transport_get_type (void) static gboolean -_can_send (CamelTransport *transport, CamelMedium *message) +sendmail_can_send (CamelTransport *transport, CamelMedium *message) { return CAMEL_IS_MIME_MESSAGE (message); } static gboolean -_send_internal (CamelMedium *message, char **argv, CamelException *ex) +sendmail_send_internal (CamelMedium *message, char **argv, CamelException *ex) { int fd[2], nullfd, wstat; sigset_t mask, omask; @@ -181,8 +181,8 @@ _send_internal (CamelMedium *message, char **argv, CamelException *ex) } static gboolean -_send_to (CamelTransport *transport, CamelMedium *message, - GList *recipients, CamelException *ex) +sendmail_send_to (CamelTransport *transport, CamelMedium *message, + GList *recipients, CamelException *ex) { GList *r; char **argv; @@ -198,19 +198,19 @@ _send_to (CamelTransport *transport, CamelMedium *message, for (i = 1, r = recipients; i <= len; i++, r = r->next) argv[i + 2] = r->data; argv[i + 2] = NULL; - - status = _send_internal (message, argv, ex); + + status = sendmail_send_internal (message, argv, ex); g_free (argv); return status; } static gboolean -_send (CamelTransport *transport, CamelMedium *message, +sendmail_send (CamelTransport *transport, CamelMedium *message, CamelException *ex) { char *argv[4] = { "sendmail", "-t", "-i", NULL }; - - return _send_internal (message, argv, ex); + + return sendmail_send_internal (message, argv, ex); } static char * |