aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-transport.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-03-29 07:20:09 +0800
committerDan Winship <danw@src.gnome.org>2002-03-29 07:20:09 +0800
commit93c35349cf39a820d6a41b2da99c2ac19c00ef93 (patch)
tree67914ba24cad1e21435730942e8e79952d55d885 /camel/camel-transport.h
parentf2724282525af3eae2f52badf8ecddd31a24db70 (diff)
downloadgsoc2013-evolution-93c35349cf39a820d6a41b2da99c2ac19c00ef93.tar.gz
gsoc2013-evolution-93c35349cf39a820d6a41b2da99c2ac19c00ef93.tar.zst
gsoc2013-evolution-93c35349cf39a820d6a41b2da99c2ac19c00ef93.zip
Change the message arg to a CamelMimeMessage instead of a CamelMedium.
* camel-transport.c (camel_transport_send_to): Change the message arg to a CamelMimeMessage instead of a CamelMedium. Even the NNTP provider returns CamelMimeMessages, and we're never going to support anything more exotic than that. Also do a few more g_return_if_fails here instead of in the providers. (camel_transport_can_send): No longer needed. (camel_transport_send): Remove this too. It wasn't being used any more, and it doesn't behave exactly the same in sendmail and smtp. * providers/smtp/camel-smtp-transport.c (smtp_send, smtp_can_send): Gone. (smtp_send_to): Update for arg change. (smtp_data): Make this take a CamelMimeMessage too. * providers/sendmail/camel-sendmail-transport.c (sendmail_send, sendmail_can_send): Gone. (sendmail_send_to): Update for arg change, and merge in the part that used to be shared with sendmail_send. svn path=/trunk/; revision=16278
Diffstat (limited to 'camel/camel-transport.h')
-rw-r--r--camel/camel-transport.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/camel/camel-transport.h b/camel/camel-transport.h
index a197749582..d46f4549a1 100644
--- a/camel/camel-transport.h
+++ b/camel/camel-transport.h
@@ -54,25 +54,16 @@ struct _CamelTransport
typedef struct {
CamelServiceClass parent_class;
- gboolean (*can_send) (CamelTransport *transport, CamelMedium *message);
- gboolean (*send) (CamelTransport *transport, CamelMedium *message,
- CamelException *ex);
- gboolean (*send_to) (CamelTransport *transport, CamelMedium *message,
+ gboolean (*send_to) (CamelTransport *transport,
+ CamelMimeMessage *message,
CamelAddress *from, CamelAddress *recipients,
CamelException *ex);
} CamelTransportClass;
/* public methods */
-gboolean camel_transport_can_send (CamelTransport *transport,
- CamelMedium *message);
-
-gboolean camel_transport_send (CamelTransport *transport,
- CamelMedium *message,
- CamelException *ex);
-
gboolean camel_transport_send_to (CamelTransport *transport,
- CamelMedium *message,
+ CamelMimeMessage *message,
CamelAddress *from,
CamelAddress *recipients,
CamelException *ex);