2015-12-02 21:49:51 +01:00
|
|
|
/*
|
|
|
|
* smtp.h, SJ
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SMTP_H
|
|
|
|
#define _SMTP_H
|
|
|
|
|
2016-10-23 22:04:55 +02:00
|
|
|
#include <piler.h>
|
2015-12-02 21:49:51 +01:00
|
|
|
|
2018-02-20 15:59:21 +01:00
|
|
|
void process_smtp_command(struct smtp_session *session, char *buf, struct config *cfg);
|
2018-03-02 22:46:48 +01:00
|
|
|
void process_data(struct smtp_session *session, char *buf, int buflen);
|
2016-08-19 22:33:47 +02:00
|
|
|
|
2016-10-23 22:04:55 +02:00
|
|
|
void send_smtp_response(struct smtp_session *session, char *buf);
|
|
|
|
void process_command_helo(struct smtp_session *session, char *buf, int buflen);
|
|
|
|
void process_command_ehlo_lhlo(struct smtp_session *session, char *buf, int buflen);
|
|
|
|
void process_command_quit(struct smtp_session *session, char *buf, int buflen);
|
|
|
|
void process_command_reset(struct smtp_session *session);
|
|
|
|
void process_command_mail_from(struct smtp_session *session, char *buf);
|
|
|
|
void process_command_rcpt_to(struct smtp_session *session, char *buf);
|
2018-02-20 15:59:21 +01:00
|
|
|
void process_command_data(struct smtp_session *session, struct config *cfg);
|
2016-10-23 22:04:55 +02:00
|
|
|
void process_command_period(struct smtp_session *session);
|
|
|
|
void process_command_starttls(struct smtp_session *session);
|
2015-12-02 21:49:51 +01:00
|
|
|
|
2016-10-23 22:04:55 +02:00
|
|
|
void reset_bdat_counters(struct smtp_session *session);
|
|
|
|
void get_bdat_size_to_read(struct smtp_session *session, char *buf);
|
2018-02-20 15:59:21 +01:00
|
|
|
void process_bdat(struct smtp_session *session, char *readbuf, int readlen, struct config *cfg);
|
2016-10-23 22:04:55 +02:00
|
|
|
|
|
|
|
#endif
|