imapfilter: Do not move mailing list mails back from Trash

Mails which we have deleted, do not move them back from Trash. Also
delete from Trash.
This commit is contained in:
Sanchayan Maity 2021-02-19 11:00:35 +05:30
parent ae391080a1
commit dee319481d

View file

@ -12,7 +12,7 @@ function main()
mails = fastmail.Sent:select_all()
move_mailing_lists(fastmail, mails)
mails = fastmail['Trash']:select_all()
move_mailing_lists(fastmail, mails)
delete_from_trash(fastmail, mails)
mails = fastmail['Spam']:select_all()
move_mailing_lists(fastmail, mails)