[exim-dev] generalized $acl_verify_message

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Tony Finch
Datum:  
To: exim-dev
Betreff: [exim-dev] generalized $acl_verify_message
This patch makes $acl_verify_message work usefully in more places.
I'm not sure if it's the Right Thing, though.

--- acl.c       29 Mar 2005 10:56:48 -0000      1.26
+++ acl.c       31 Mar 2005 17:41:23 -0000
@@ -1612,7 +1612,17 @@


   if (cond_expand_at_top[cb->type])
     {
+    if (*user_msgptr != NULL)
+      {
+      if (sender_verified_failed != NULL &&
+          sender_verified_failed->message != NULL &&
+          strcmpic(*user_msgptr, US"sender verify failed") == 0)
+        acl_verify_message = sender_verified_failed->message;
+      else
+        acl_verify_message = *user_msgptr;
+      }
     arg = expand_string(cb->arg);
+    acl_verify_message = NULL;
     if (arg == NULL)
       {
       if (expand_string_forcedfail) continue;


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}}