more logging improvements
This commit is contained in:
@@ -302,8 +302,8 @@ def release(cfg, args):
|
|||||||
rcpts = quarantine.release(args.quarantine_id, args.recipient)
|
rcpts = quarantine.release(args.quarantine_id, args.recipient)
|
||||||
rcpts = ", ".join(rcpts)
|
rcpts = ", ".join(rcpts)
|
||||||
logger.info(
|
logger.info(
|
||||||
f"{quarantine._storage.name}: released message with id {args.quarantine_id} "
|
f"{quarantine._storage.name}: released message with id "
|
||||||
f"for {rcpts}")
|
f"{args.quarantine_id} for {rcpts}")
|
||||||
|
|
||||||
|
|
||||||
def copy(cfg, args):
|
def copy(cfg, args):
|
||||||
|
|||||||
@@ -190,6 +190,8 @@ class Conditions:
|
|||||||
"vars does not match")
|
"vars does not match")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
logger.debug(f"vars matches, variable {self.var} is available")
|
||||||
|
|
||||||
if self.list is not None:
|
if self.list is not None:
|
||||||
envfrom = milter.msginfo["mailfrom"]
|
envfrom = milter.msginfo["mailfrom"]
|
||||||
envto = milter.msginfo["rcpts"]
|
envto = milter.msginfo["rcpts"]
|
||||||
@@ -203,4 +205,7 @@ class Conditions:
|
|||||||
"list does not match")
|
"list does not match")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
logger.debug(
|
||||||
|
"list matches envelope-from and envelope-to address")
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ import jsonschema
|
|||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
||||||
class BaseConfig:
|
class BaseConfig:
|
||||||
JSON_SCHEMA = {
|
JSON_SCHEMA = {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|||||||
Reference in New Issue
Block a user