This category contains 1 post

Delete emails on Zimbra based on Subject

This is just a modification of what I have found from this link. Have added ability to loop through a mailbox when it finds multiple messages matching the subject defined. #!/bin/bash EMAIL_ADDRESSES=temp_email SUBJECT=”Employee Compensation Letter” echo “Subject is: $SUBJECT” echo “” cat $EMAIL_ADDRESSES|while read mailid; do #echo $mailid #getting the mboxstore id to search for … Continue reading