Fix syntax error in CLI
This commit is contained in:
@@ -118,10 +118,8 @@ def list_quarantine_emails(config, args):
|
|||||||
metadata["date"]))
|
metadata["date"]))
|
||||||
row["mailfrom"] = metadata["mailfrom"]
|
row["mailfrom"] = metadata["mailfrom"]
|
||||||
row["recipient"] = metadata["recipients"].pop(0)
|
row["recipient"] = metadata["recipients"].pop(0)
|
||||||
if "subject" in emails[quarantine_id]["headers"].keys():
|
if "subject" not in emails[quarantine_id]["headers"].keys():
|
||||||
row["subject"] = emails[quarantine_id]["headers"]["subject"][:60]
|
emails[quarantine_id]["headers"]["subject"] = ""
|
||||||
else
|
|
||||||
row["subject"] = ""
|
|
||||||
rows.append(row)
|
rows.append(row)
|
||||||
|
|
||||||
if metadata["recipients"]:
|
if metadata["recipients"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user