diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-06-10 21:47:22 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-06-10 21:47:22 +0400 |
commit | 07082741605e8e048a129bec28695f57263de1e8 (patch) | |
tree | 7c3f92439dfc40cac6c495f052ff3e913aea6709 /src/smtp_proto.h | |
parent | 1be79df4d51fc2e497a73fc0163de08d406cc1f3 (diff) | |
download | rspamd-07082741605e8e048a129bec28695f57263de1e8.tar.gz rspamd-07082741605e8e048a129bec28695f57263de1e8.zip |
* Check messages received via smtp proxy
* Add support for sendfile in io dispatcher
* Fix issues with compatibility of worker_task and smtp proxy
* Proxy DATA command
Diffstat (limited to 'src/smtp_proto.h')
-rw-r--r-- | src/smtp_proto.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/smtp_proto.h b/src/smtp_proto.h index c78cfb094..e850e4a5d 100644 --- a/src/smtp_proto.h +++ b/src/smtp_proto.h @@ -11,9 +11,12 @@ #define SMTP_ERROR_RECIPIENTS "554 No valid recipients" CRLF #define SMTP_ERROR_UNIMPLIMENTED "502 Command not implemented" CRLF #define SMTP_ERROR_UPSTREAM "421 Service not available, closing transmission channel" CRLF +#define SMTP_ERROR_FILE "420 Service not available, filesystem error" CRLF #define SMTP_ERROR_OK "250 Requested mail action okay, completed" CRLF #define SMTP_ERROR_DATA_OK "354 Start mail input; end with <CRLF>.<CRLF>" CRLF +#define DATA_END_TRAILER CRLF "." CRLF + struct smtp_command { enum { @@ -40,7 +43,9 @@ gboolean parse_smtp_rcpt (struct smtp_session *session, struct smtp_command *cmd /* Upstream SMTP */ gboolean smtp_upstream_read_socket (f_str_t * in, void *arg); +gboolean smtp_upstream_write_socket (void *arg); void smtp_upstream_err_socket (GError *err, void *arg); void smtp_upstream_finalize_connection (gpointer data); +size_t smtp_upstream_write_list (GList *args, char *buf, size_t buflen); #endif |