Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Try formail(1) [was: Remove "Modified by..." in subject?]' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Try formail(1) [was: Remove "Modified by..." in subject?]
Authored by: SlewSys on Apr 28, '04 06:04:39PM

The only command sufficiently powerful for redirecting mail that I am aware of is formail(1), which is part of the procmail(1) package. I believe it is native to OS X 10.3, at least.

Here is a sample command-line that I use for resending delivered mail.
Please read the manual carefully and proceed with caution, since the command must be executed as the super user (i.e., root).

# formail -s formail -k -X Subject: -R From: Reply-To: -X Reply-To: -s sendmail target-user@target.domain <mailbox

(all on one line) The second formail(1) command (i.e., formail -k ...) rewrites the `From:' header to `Reply-To:'. This way, if target-user wants to reply to a message, the reply will go to the original sender and not back to me. The first formail(1) command (i.e., formail -s ...) simply splits the mailbox up into individual messages.

Not exactly the answer you were looking for, but hopefully someone will find this useful...



[ Reply to This | # ]