[exim-dev] ACL_WHERE_MIME aargh

Página Inicial
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
Para: Tom Kistner
CC: exim-dev
Assunto: [exim-dev] ACL_WHERE_MIME aargh
Tom, would it be right to declare ACL_WHERE_MIME unconditionally? If you
compile the code currently in CVS without CONTENT_SCAN then it blows up.
The patch below fixes the problem.

gcc -c -O -pipe -march=pentium -I.    acl.c
acl.c:496: `ACL_WHERE_MIME' undeclared here (not in a function)
acl.c:496: initializer element is not constant
acl.c:496: (near initialization for `control_forbids[5]')
acl.c:501: `ACL_WHERE_MIME' undeclared here (not in a function)
acl.c:501: initializer element is not constant
acl.c:501: (near initialization for `control_forbids[6]')
acl.c:517: `ACL_WHERE_MIME' undeclared here (not in a function)
acl.c:517: initializer element is not constant
acl.c:517: (near initialization for `control_forbids[8]')
*** Error code 1


--- src/macros.h        17 Feb 2005 11:58:26 -0000      1.9
+++ src/macros.h        9 Mar 2005 16:32:59 -0000
@@ -745,10 +746,7 @@
 enum { ACL_WHERE_RCPT,       /* Some controls are for RCPT only */
        ACL_WHERE_MAIL,       /* )                                           */
        ACL_WHERE_PREDATA,    /* ) There are several tests for "in message", */
-                             /* ) implemented by <= WHERE_NOTSMTP           */
-#ifdef WITH_CONTENT_SCAN     /* )                                           */
-       ACL_WHERE_MIME,       /* )                                           */
-#endif                       /* )                                           */
+       ACL_WHERE_MIME,       /* ) implemented by <= WHERE_NOTSMTP           */
        ACL_WHERE_DATA,       /* )                                           */
        ACL_WHERE_NOTSMTP,    /* )                                           */



Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}