Rev 3 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | magnus | 1 | /************************************************* |
2 | * Exim - an Internet mail transport agent * |
||
3 | *************************************************/ |
||
4 | |||
5 | /* Copyright (c) University of Cambridge 1995 - 2002 */ |
||
6 | /* See the file NOTICE for conditions of use and distribution. */ |
||
7 | |||
8 | |||
9 | #include "local_scan.h" |
||
10 | |||
11 | /* |
||
12 | * This is a basic version of local_scan that always accepts the messge. |
||
13 | * It is like the template provided by Philip Hazel, except it is |
||
14 | * intended to be compiled as a .so and loaded dynamically by the "real" |
||
15 | * local_scan. |
||
16 | */ |
||
17 | |||
18 | int local_scan_version_major(void) |
||
19 | { |
||
20 | return LOCAL_SCAN_ABI_VERSION_MAJOR; |
||
21 | } |
||
22 | |||
23 | int local_scan_version_minor(void) |
||
24 | { |
||
25 | return LOCAL_SCAN_ABI_VERSION_MINOR; |
||
26 | } |
||
27 | |||
28 | int local_scan_version( void ) |
||
29 | { |
||
30 | return 1; |
||
31 | } |
||
32 | |||
33 | |||
34 | int local_scan(int fd, uschar **return_text) |
||
35 | { |
||
36 | /* Keep pedantic compilers happy */ |
||
37 | fd = fd; |
||
38 | return_text = return_text; |
||
39 | |||
40 | log_write(0, LOG_MAIN, "Message accepted by dynamically loaded dummy local_scan"); |
||
41 | return LOCAL_SCAN_ACCEPT; |
||
42 | } |
||
43 | |||
44 | |||
45 | /* End of local_scan.c */ |