[exim-dev] [PATCH] control=freeze/notell

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: David Woodhouse
Data:  
Para: exim-dev
Assunto: [exim-dev] [PATCH] control=freeze/notell
When I explicitly freeze a message, sometimes I don't want to be told
about it...

--- exim-4.60/src/acl.c~    2005-11-28 10:57:32.000000000 +0000
+++ exim-4.60/src/acl.c    2005-12-18 16:59:32.000000000 +0000
@@ -528,7 +528,7 @@ static control_def controls_list[] = {
   { US"caseful_local_part",     CONTROL_CASEFUL_LOCAL_PART, FALSE },
   { US"caselower_local_part",   CONTROL_CASELOWER_LOCAL_PART, FALSE },
   { US"enforce_sync",           CONTROL_ENFORCE_SYNC, FALSE },
-  { US"freeze",                 CONTROL_FREEZE, FALSE },
+  { US"freeze",                 CONTROL_FREEZE, TRUE },
   { US"no_enforce_sync",        CONTROL_NO_ENFORCE_SYNC, FALSE },
   { US"no_multiline_responses", CONTROL_NO_MULTILINE, FALSE },
   { US"queue_only",             CONTROL_QUEUE_ONLY, FALSE },
@@ -2473,6 +2473,16 @@ for (; cb != NULL; cb = cb->next)
       case CONTROL_FREEZE:
       deliver_freeze = TRUE;
       deliver_frozen_at = time(NULL);
+      if (Ustrncmp(p, "/notell", 7) == 0)
+     {
+     p += 7;
+     freeze_tell = NULL;
+     }
+      if (*p != 0)
+        {
+        *log_msgptr = string_sprintf("syntax error in \"freeze=%s\"", arg);
+        return ERROR;
+        }
       break;


       case CONTROL_QUEUE_ONLY:


--
dwmw2