~ubuntu-branches/ubuntu/hardy/exim4/hardy-proposed

« back to all changes in this revision

Viewing changes to src/local_scan.h

  • Committer: Bazaar Package Importer
  • Author(s): Marc Haber
  • Date: 2005-07-02 06:08:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050702060834-qk17pd52kb9nt3bj
Tags: 4.52-1
* new upstream version 4.51. (mh)
  * adapt 70_remove_exim-users_references
  * remove 37_gnutlsparams
  * adapt 36_pcre
  * adapt 31_eximmanpage
* fix package priorities to have them in sync with override again. (mh)
* Fix error in nb (Norwegian) translation.
  Thanks to Helge Hafting. (mh). Closes: #315775
* Standards-Version: 3.6.2, no changes needed. (mh)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Cambridge: exim/exim-src/src/local_scan.h,v 1.4 2005/03/22 14:11:54 ph10 Exp $ */
 
2
 
1
3
/*************************************************
2
4
*     Exim - an Internet mail transport agent    *
3
5
*************************************************/
4
6
 
5
 
/* Copyright (c) University of Cambridge 1995 - 2004 */
 
7
/* Copyright (c) University of Cambridge 1995 - 2005 */
6
8
/* See the file NOTICE for conditions of use and distribution. */
7
9
 
8
10
/* This file is the header that is the only Exim header to be included in the
9
11
source for the local_scan.c() function. It contains definitions that are made
10
 
available for use in that function, and which are documented. */
 
12
available for use in that function, and which are documented.
 
13
 
 
14
This API is also used for functions called by the ${dlfunc expansion item. */
11
15
 
12
16
 
13
17
/* Some basic types that make some things easier, and the store functions. */
32
36
};
33
37
 
34
38
 
35
 
/* Return codes from the support functions lss_match_xxx(). */
 
39
/* Functions called by ${dlfunc{file}{func}{arg}...} return one of the five
 
40
status codes defined immediately below. The function's first argument is either
 
41
the result of expansion, or the error message in case of failure. The second
 
42
and third arguments are standard argument count and vector, comprising the
 
43
{arg} values specified in the expansion item. */
 
44
 
 
45
typedef int exim_dlfunc_t(uschar **yield, int argc, uschar *argv[]);
 
46
 
 
47
 
 
48
/* Return codes from the support functions lss_match_xxx(). These are also the
 
49
codes that dynamically-loaded ${dlfunc functions must return. */
36
50
 
37
51
#define  OK            0          /* Successful match */
38
52
#define  DEFER         1          /* Defer - some problem */
39
53
#define  FAIL          2          /* Matching failed */
40
54
#define  ERROR         3          /* Internal or config error */
41
55
 
 
56
/* Extra return code for ${dlfunc functions */
 
57
 
 
58
#define  FAIL_FORCED   4          /* "Forced" failure */
 
59
 
42
60
 
43
61
/* Available logging destinations */
44
62
 
107
125
  uschar *address;              /* the recipient address */
108
126
  int     pno;                  /* parent number for "one_time" alias, or -1 */
109
127
  uschar *errors_to;            /* the errors_to address or NULL */
 
128
#ifdef EXPERIMENTAL_BRIGHTMAIL
 
129
  uschar *bmi_optin;
 
130
#endif
110
131
} recipient_item;
111
132
 
112
133
 
142
163
extern void    debug_printf(char *, ...) PRINTF_FUNCTION;
143
164
extern uschar *expand_string(uschar *);
144
165
extern void    header_add(int, char *, ...);
 
166
extern void    header_add_at_position(BOOL, uschar *, BOOL, int, char *, ...);
 
167
extern void    header_remove(int, uschar *);
 
168
extern BOOL    header_testname(header_line *, uschar *, int, BOOL);
 
169
extern BOOL    header_testname_incomplete(header_line *, uschar *, int, BOOL);
145
170
extern void    log_write(unsigned int, int, char *format, ...);
146
171
extern int     lss_b64decode(uschar *, uschar **);
147
172
extern uschar *lss_b64encode(uschar *, int);
150
175
extern int     lss_match_address(uschar *, uschar *, BOOL);
151
176
extern int     lss_match_host(uschar *, uschar *, uschar *);
152
177
extern void    receive_add_recipient(uschar *, int);
 
178
extern BOOL    receive_remove_recipient(uschar *);
153
179
extern uschar *rfc2047_decode(uschar *, BOOL, uschar *, int, int *, uschar **);
154
180
extern int     smtp_fflush(void);
155
181
extern void    smtp_printf(char *, ...) PRINTF_FUNCTION;