On 29/05/17 11:07, Hubro wrote: > I have already made similar scripts, but the issue is that it runs "postcat" > and "postsuper" once for every queue ID, so it becomes absolutely unusable > when needing to delete tens- or hundreds of thousands of emails.
postcat -e "$(postconf -h queue_directory)/deferred/"?/* | your_program_that_parses_data_and_outputs_queue_ids | postsuper -d - Runs postconf, postcat and postsuper once each. You can modify for other queues accordingly. Peter