add list condition

This commit is contained in:
2023-12-12 14:13:08 +01:00
parent f42860d900
commit 479c1513a3
7 changed files with 52 additions and 66 deletions

View File

@@ -271,6 +271,7 @@ def release(quarantines, args):
f"{args.quarantine}: released message with id {args.quarantine_id} "
f"for {rcpts}")
def copy(quarantines, args):
logger = logging.getLogger(__name__)
quarantine = _get_quarantine(quarantines, args.quarantine, args.debug)
@@ -279,6 +280,7 @@ def copy(quarantines, args):
f"{args.quarantine}: sent a copy of message with id {args.quarantine_id} "
f"to {args.recipient}")
def delete(quarantines, args):
storage = _get_quarantine(quarantines, args.quarantine, args.debug).storage
storage.delete(args.quarantine_id, args.recipient)
@@ -455,7 +457,7 @@ def main():
dest="syslog",
help="Disable syslog messages.",
action="store_false")
quar_copy_parser_grp.add_argument(
quar_copy_parser.add_argument(
"-t", "--to",
dest="recipient",
help="Release email for one recipient address.")