validate_recipients() - completed removal of unused param
[citadel.git] / citadel / server / modules / smtp / smtp_util.h
1 /*
2  * Copyright (c) 1998-2017 by the citadel.org team
3  *
4  * This program is open source software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 3.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  *
12  */
13
14 struct citsmtp {                /* Information about the current session */
15         int command_state;
16         StrBuf *Cmd;
17         StrBuf *helo_node;
18         StrBuf *from;
19         StrBuf *recipients;
20         StrBuf *OneRcpt;
21         int number_of_recipients;
22         int delivery_mode;
23         int message_originated_locally;
24         int is_lmtp;
25         int is_unfiltered;
26         int is_msa;
27         StrBuf *preferred_sender_email;
28         StrBuf *preferred_sender_name;
29 };
30
31 #define SMTP            ((struct citsmtp *)CC->session_specific_data)
32
33 // These are all the values that can be passed to the is_final parameter of smtp_do_bounce()
34 enum {
35         SDB_BOUNCE_FATALS,
36         SDB_BOUNCE_ALL,
37         SDB_WARN
38 };
39
40 void smtp_do_bounce(const char *instr, int is_final);
41 char *smtpstatus(int code);