Hello everyone!

I have an account that has been the target of a spam attack, with over 22.000 spam emails now in the inbox folder. I am trying to find a way to get a list of all messages, filter them with the usual grep/cut/sed/awk tools and get a list of message IDs that I can, again, batch process with zmmailbox and mark them as junk.

I have found the command to mark them as junk (which will also move them into the junk folder, hopefully), but I have not found a way to list all the emails in a given account/folder so that I can filter them and get the IDs.

Any hints? This is a Debian Etch 32 bits box with ZCS Network Edition 5.0.7 and 1200 accounts from one of my customers.

Thanks in advance.