projects
/
claws.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2004-11-26 [colin] 0.9.12cvs173.1
[claws.git]
/
src
/
common
/
smtp.h
diff --git
a/src/common/smtp.h
b/src/common/smtp.h
index dfc4c89b78f9da6bb50ce85190f90ebe98a471a4..b813ae68cf366b9edaef343c8c4e62b322b4fe62 100644
(file)
--- a/
src/common/smtp.h
+++ b/
src/common/smtp.h
@@
-34,14
+34,20
@@
typedef struct _SMTPSession SMTPSession;
#define MSGBUFSIZE 8192
#define MSGBUFSIZE 8192
-#define SM_OK 0
-#define SM_ERROR 128
-#define SM_UNRECOVERABLE 129
-#define SM_AUTHFAIL 130
+typedef enum
+{
+ SM_OK = 0,
+ SM_ERROR = 128,
+ SM_UNRECOVERABLE = 129,
+ SM_AUTHFAIL = 130
+} SMTPErrorValue;
-#define ESMTP_8BITMIME 0x01
-#define ESMTP_SIZE 0x02
-#define ESMTP_ETRN 0x04
+typedef enum
+{
+ ESMTP_8BITMIME = 1 << 0,
+ ESMTP_SIZE = 1 << 1,
+ ESMTP_ETRN = 1 << 2
+} ESMTPFlag;
typedef enum
{
typedef enum
{
@@
-70,7
+76,6
@@
typedef enum
SMTP_RSET,
SMTP_QUIT,
SMTP_ERROR,
SMTP_RSET,
SMTP_QUIT,
SMTP_ERROR,
- SMTP_AUTH_FAILED,
SMTP_DISCONNECTED,
N_SMTP_PHASE
SMTP_DISCONNECTED,
N_SMTP_PHASE
@@
-98,9
+103,15
@@
struct _SMTPSession
guchar *send_data;
guint send_data_len;
guchar *send_data;
guint send_data_len;
+ gint max_message_size;
+
SMTPAuthType avail_auth_type;
SMTPAuthType forced_auth_type;
SMTPAuthType auth_type;
SMTPAuthType avail_auth_type;
SMTPAuthType forced_auth_type;
SMTPAuthType auth_type;
+
+ SMTPErrorValue error_val;
+ gchar *error_msg;
+ gboolean is_esmtp;
};
Session *smtp_session_new (void);
};
Session *smtp_session_new (void);