Hi,
I'm trying to script a way to delete a mail to all account when I need (like a spam or such)
But it is a pain to script because when the spam is in the trashbin it seems that zmmailbox can't find the mail until I gave him the specific folder to look into.
So I tried to use the --dumpster option but that does not find the mail.
So 2 questions :
> Is there a way to lookup in ALL folder by default ?
>What is the dumpster option if it does not look into the trashbin ?
$ zmmailbox -z -m user@domain.net s -l 999 -t message "From:user@domain.com in:trash date:01/03/23 subject:The Subject"
num: 1, more: false
Id Type From Subject Date
---- ---- -------------------- -------------------------------------------------- --------------
1. 1321 mess user@domain.com The Subject 01/03/23 10:31
$ zmmailbox -z -m user@domain.net s -l 999 -t message "From:user@domain.com date:01/03/23 subject:The Subject"
num: 0, more: false
$ zmmailbox -z -m user@domain.net s --dumpster -l 999 -t message "From:user@domain.com date:01/03/23 subject:The Subject"
num: 0, more: false
Regards