Background
- An email relaying issue was resolved.
- 32 email messages to sponsors had bounced to root.
- I copied /var/mail/root to /tmp/root.
- I deleted irrelevant messages from /tmp/root (using mutt).
- All the bounced messages had the same sender.
Requirements
An efficient way to do the following for all 32 messages:
- Extract each original message from the bounce message.
- Send the message as the original sender to the original recipients, including the original bcc.
- Make the sponsors notice nothing except that there was a delay in delivery.