I've got a situation where I need to retrieve a number of attachments by filename from a series of mailboxes.

I need to do this programatically. In a loop, searching for each filename.

I'm experimenting with zmmboxsearch run from a shell script, but let me know if there is a better way.

My goal is to actually retrieve the attachment file in tact.