Mail Headers in

by Mitch on 10/08/2009

If you’re like me and you have accumulated several email addresses over the years, but are wishing to use one email address for everything, here are some Terminal commands that will come in useful. Sure you could write some AppleScript if you were inclined, but save yourself the time and get your hands dirty in some Terminal.

First, to set a reply-to email address:
defaults write UserHeaders '{"Reply-To" = "First Last <[email protected]>"; }'

Second, permanently change the from email address:
defaults write UserHeaders '{"From" = "First Last <[email protected]>"; }'

Third, set a BCC email address for archiving and message stores:
defaults write UserHeaders '{"Bcc" = "Email Archive <[email protected]>"; }'

And, lastly, do it all in one sexy command:
defaults write UserHeaders '{"Reply-To" = "First Last <[email protected]>"; "From" = "First Last <[email protected]>";"Bcc" = "Email Archive <[email protected]>"; }'

No comments yet.

  1. 23/10/2009JF says:

    I’ve done this on a few computers and it’s worked fine- but I just got an error message when trying to do it again. It said “could not parse, try single-quoting it”… do you know what this means?