aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/sendmail
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-07-02 07:07:18 +0800
committerDan Winship <danw@src.gnome.org>2000-07-02 07:07:18 +0800
commit98753e92d2b6bb52978c2ac9d38d29b8d2372978 (patch)
tree89bb98c0ad5d252931f0e65c9db1d904c8324d96 /camel/providers/sendmail
parent6dabd2bd964e2e6692fa01261104fe4a510a0fa8 (diff)
downloadgsoc2013-evolution-98753e92d2b6bb52978c2ac9d38d29b8d2372978.tar.gz
gsoc2013-evolution-98753e92d2b6bb52978c2ac9d38d29b8d2372978.tar.zst
gsoc2013-evolution-98753e92d2b6bb52978c2ac9d38d29b8d2372978.zip
New method, to return an end-user-friendly name corresponding to a
* camel-service.c (camel_service_get_name): New method, to return an end-user-friendly name corresponding to a service. (eg, "POP service for danw on trna.helixcode.com"). * providers/imap/camel-imap-store.c, providers/mbox/camel-mbox-store.c, providers/nntp/camel-nntp-store.c, providers/pop3/camel-pop3-store.c, providers/sendmail/camel-sendmail-transport.c, providers/smtp/camel-smtp-transport.c: Implement. svn path=/trunk/; revision=3851
Diffstat (limited to 'camel/providers/sendmail')
-rw-r--r--camel/providers/sendmail/camel-sendmail-transport.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/camel/providers/sendmail/camel-sendmail-transport.c b/camel/providers/sendmail/camel-sendmail-transport.c
index 3b84d5cb90..3facc42676 100644
--- a/camel/providers/sendmail/camel-sendmail-transport.c
+++ b/camel/providers/sendmail/camel-sendmail-transport.c
@@ -39,6 +39,8 @@
#include "camel-stream-fs.h"
#include "camel-exception.h"
+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);
@@ -51,8 +53,12 @@ camel_sendmail_transport_class_init (CamelSendmailTransportClass *camel_sendmail
{
CamelTransportClass *camel_transport_class =
CAMEL_TRANSPORT_CLASS (camel_sendmail_transport_class);
+ CamelServiceClass *camel_service_class =
+ CAMEL_SERVICE_CLASS (camel_sendmail_transport_class);
/* 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;
@@ -210,3 +216,12 @@ _send (CamelTransport *transport, CamelMedium *message,
return _send_internal (message, argv, ex);
}
+
+static char *
+get_name (CamelService *service, gboolean brief)
+{
+ if (brief)
+ return g_strdup ("sendmail");
+ else
+ return g_strdup ("Mail delivery via the sendmail program");
+}