citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
  Fossies Dox: citadel.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

smtp_util.h
Go to the documentation of this file.
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
14const char *smtp_get_Recipients(void);
15
16struct citsmtp { /* Information about the current session */
18 StrBuf *Cmd;
19 StrBuf *helo_node;
20 StrBuf *from;
21 StrBuf *recipients;
22 StrBuf *OneRcpt;
28 int is_msa;
31};
32
33#define SMTP ((struct citsmtp *)CC->session_specific_data)
34
35// These are all the values that can be passed to the is_final parameter of smtp_do_bounce()
36enum {
40};
41
42void smtp_do_bounce(const char *instr, int is_final);
43char *smtpstatus(int code);
const char * smtp_get_Recipients(void)
Definition: smtp_util.c:53
@ SDB_BOUNCE_FATALS
Definition: smtp_util.h:37
@ SDB_BOUNCE_ALL
Definition: smtp_util.h:38
@ SDB_WARN
Definition: smtp_util.h:39
char * smtpstatus(int code)
Definition: smtp_util.c:305
void smtp_do_bounce(const char *instr, int is_final)
Definition: smtp_util.c:72
StrBuf * from
Definition: smtp_util.h:20
int is_msa
Definition: smtp_util.h:28
StrBuf * OneRcpt
Definition: smtp_util.h:22
StrBuf * preferred_sender_email
Definition: smtp_util.h:29
int command_state
Definition: smtp_util.h:17
int is_unfiltered
Definition: smtp_util.h:27
StrBuf * helo_node
Definition: smtp_util.h:19
int number_of_recipients
Definition: smtp_util.h:23
StrBuf * recipients
Definition: smtp_util.h:21
int delivery_mode
Definition: smtp_util.h:24
StrBuf * Cmd
Definition: smtp_util.h:18
int is_lmtp
Definition: smtp_util.h:26
StrBuf * preferred_sender_name
Definition: smtp_util.h:30
int message_originated_locally
Definition: smtp_util.h:25