[Exim] Re: header_syntax error message

Góra strony
Delete this message
Reply to this message
Autor: Derrick 'dman' Hudson
Data:  
Dla: exim-users
Stare tematy: Re: Re [Exim] multiple ip address (re)routing
Temat: [Exim] Re: header_syntax error message
--

(apologies for the mis-threading of this message, I lost a bunch of
mail last night so I got this off the archive)

On Jun 27, 2002 Matt Bernstein wrote:
| On Jun 26 Derrick 'dman' Hudson wrote:
| |
| | I want users (eg of Outlook) to get the same error message from my
| | ACL that verifies header syntax as I see in the reject log,
| | instead of merely "Administrative Prohibition". Is that message
| | available in a variable somewhere so that I can return it via
| | 'message ='?

|
| No, but you get to define log_message in your ACLs.


I don't want to define log_message -- it is already set correclty (as
I want).  I want to be able to do
    message = $log_message


So I took a look and patched acl.c myself :


--- acl.c.orig  Thu Jun 27 20:34:14 2002
+++ acl.c       Thu Jun 27 20:34:18 2002
@@ -456,7 +456,12 @@
   /* Check that all relevant header lines have the correct syntax */


   if (strcmpic(ss+7, US"syntax") == 0)
-    return verify_check_headers(log_msgptr);
+  {
+      int result = verify_check_headers(log_msgptr);
+      /* copy the log message into the "user" message */
+      *user_msgptr = string_sprintf("%s" , *log_msgptr );
+      return result ;
+  }


/* Check that there is at least one verifiable sender address in the relevant header lines. This can be followed by callout and defer options, just like


It was easy enough, but isn't the Right solution (as long as I don't
define 'message' myself).


Philip,

What are the code changes needed to create a new variable in this
situation?  I'd like to see the next release of exim include the
logged message in a variable such as $log_message so that users
like myself can simply put
    mesage = $log_message
on the ACL rather than patching exim.



| The only oddity I've spotted is in verifying, but that's not
| relevant to the DATA ACL.


What oddity is this in verifying? What sort of verifying are you
referring to?

-D

--

Your beauty should not come from outward adornment, such as braided hair
and the wearing of gold jewelry and fine clothes.  Instead, it should be
that of your inner self, the unfading beauty of a gentle and quiet
spirit, which is of GREAT WORTH in God's sight.  For this is the way the
holy women of the past used to make themselves beautiful.
        I Peter 3:3-5


http://dman.ddts.net/~dman/

--
[ Content of type application/pgp-signature deleted ]
--