File: accept.c

package info (click to toggle)
sa-exim 4.2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 356 kB
  • ctags: 154
  • sloc: ansic: 1,296; perl: 200; makefile: 108; sh: 77
file content (45 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*************************************************
*     Exim - an Internet mail transport agent    *
*************************************************/

/* Copyright (c) University of Cambridge 1995 - 2002 */
/* See the file NOTICE for conditions of use and distribution. */


#include "local_scan.h"

/*
 * This is a basic version of local_scan that always accepts the messge.
 * It is like the template provided by Philip Hazel, except it is
 * intended to be compiled as a .so and loaded dynamically by the "real"
 * local_scan.
 */

int local_scan_version_major(void)
{
    return LOCAL_SCAN_ABI_VERSION_MAJOR;
}

int local_scan_version_minor(void)
{
    return LOCAL_SCAN_ABI_VERSION_MINOR;
}

int local_scan_version( void )
{
    return 1;
}
 

int local_scan(int fd, uschar **return_text)
{
    /* Keep pedantic compilers happy */
    fd = fd;
    return_text = return_text;

    log_write(0, LOG_MAIN, "Message accepted by dynamically loaded dummy local_scan");
    return LOCAL_SCAN_ACCEPT;
}


/* End of local_scan.c */