Events: raise msg:fail:internal & msg:complete for -Mrm. Bug 2310
[exim.git] / src / src / exim.c
index 9a1cf8b9f3a20ac312786a8925ecf91815717912..1c27100c7f96fd7d5f55e1689e1976ebc1502966 100644 (file)
@@ -4449,6 +4449,12 @@ if (msg_action_arg > 0 && msg_action != MSG_DELIVER && msg_action != MSG_LOAD)
   int yield = EXIT_SUCCESS;
   set_process_info("acting on specified messages");
 
+  /* ACL definitions may be needed when removing a message (-Mrm) because
+  event_action gets expanded */
+
+  if (msg_action == MSG_REMOVE)
+    readconf_rest();
+
   if (!one_msg_action)
     {
     for (i = msg_action_arg; i < argc; i++)