File: smtp.h

package info (click to toggle)
mailfront 0.98-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 648 kB
  • ctags: 495
  • sloc: ansic: 3,033; sh: 1,487; makefile: 78
file content (21 lines) | stat: -rw-r--r-- 480 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef MAIL_FRONT__SMTP__H__
#define MAIL_FRONT__SMTP__H__

#include "responses.h"
#include <iobuf/iobuf.h>
#include <str/str.h>

extern str line;
extern str domain_name;

struct sasl_auth;
extern struct sasl_auth saslauth;

#define smtp_get_line() (ibuf_getstr_crlf(&inbuf, &line))
extern int smtp_mainloop(void);
extern int smtp_dispatch(void);

extern int respond(unsigned number, int final, const char* msg);
extern int respond_resp(const response* resp, int final);

#endif