From 6861836d29bcff5b60ad250da11b0a596a2adccb Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 28 Jan 2002 22:10:44 +0000 Subject: Use flags rather than a bunch of gboolean variables. (smtp_connect): Same. 2002-01-28 Jeffrey Stedfast * providers/smtp/camel-smtp-transport.c (smtp_construct): (connect_to_server): Use flags rather than a bunch of gboolean variables. (smtp_connect): Same. (smtp_mail): Here too. Use the enhanced status codes if available. (smtp_data): And again here. (smtp_helo): Finally here. Also detect the ENHANCEDSTATUSCODES extension. (smtp_rcpt): Use the enhanced status codes if available. (smtp_rset): Here too. (smtp_quit): And finally here. * camel-transport.h: Removed gboolean supports_8bit since this is pretty local to only SMTP for now. svn path=/trunk/; revision=15498 --- camel/providers/smtp/camel-smtp-transport.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'camel/providers/smtp/camel-smtp-transport.h') diff --git a/camel/providers/smtp/camel-smtp-transport.h b/camel/providers/smtp/camel-smtp-transport.h index 7a6b631c46..8bba00e987 100644 --- a/camel/providers/smtp/camel-smtp-transport.h +++ b/camel/providers/smtp/camel-smtp-transport.h @@ -47,15 +47,21 @@ extern "C" { #define CAMEL_IS_SMTP_TRANSPORT(o) (CAMEL_CHECK_TYPE((o), CAMEL_SMTP_TRANSPORT_TYPE)) +#define CAMEL_SMTP_TRANSPORT_IS_ESMTP (1 << 0) +#define CAMEL_SMTP_TRANSPORT_8BITMIME (1 << 1) +#define CAMEL_SMTP_TRANSPORT_ENHANCEDSTATUSCODES (1 << 2) + +#define CAMEL_SMTP_TRANSPORT_USE_SSL (1 << 3) + typedef struct { CamelTransport parent_object; - + CamelStream *istream, *ostream; - - gboolean use_ssl, is_esmtp; - + + guint32 flags; + struct sockaddr_in localaddr; - + GHashTable *authtypes; } CamelSmtpTransport; -- cgit v1.2.3