1 /*************************************************
2 * Exim - an Internet mail transport agent *
3 *************************************************/
5 /* Copyright (c) University of Cambridge 1995 - 2009 */
6 /* Copyright (c) The Exim Maintainers 2021 */
7 /* See the file NOTICE for conditions of use and distribution. */
8 /* SPDX-License-Identifier: GPL-2.0-or-later */
11 /******************************************************************************
12 This file contains a template local_scan() function that just returns ACCEPT.
13 If you want to implement your own version, you should copy this file to, say
14 Local/local_scan.c, and edit the copy. To use your version instead of the
18 LOCAL_SCAN_SOURCE=Local/local_scan.c
20 in your Local/Makefile. This makes it easy to copy your version for use with
21 subsequent Exim releases.
23 For a full description of the API to this function, see the Exim specification.
24 ******************************************************************************/
27 /* This is the only Exim header that you should include. The effect of
28 including any other Exim header is not defined, and may change from release to
29 release. Use only the documented interface! */
31 #include "local_scan.h"
34 /* This is a "do-nothing" version of a local_scan() function. The arguments
37 fd The file descriptor of the open -D file, which contains the
38 body of the message. The file is open for reading and
39 writing, but modifying it is dangerous and not recommended.
41 return_text A pointer to an unsigned char* variable which you can set in
42 order to return a text string. It is initialized to NULL.
44 The return values of this function are:
47 The message is to be accepted. The return_text argument is
48 saved in $local_scan_data.
51 The message is to be rejected. The returned text is used
52 in the rejection message.
55 This specifies a temporary rejection. The returned text
56 is used in the rejection message.
60 local_scan(int fd, uschar **return_text)
62 return LOCAL_SCAN_ACCEPT;
65 /* End of local_scan.c */