Custom Headers in Apple Mail

Apple’s Mail.app can be configured to send custom headers with each e-mail sent. The usual “defaults” command is your friend. Here is an example (enter on one line) :

defaults write com.apple.mail UserHeaders
   '{"X-Message-Flag" =
   "Microsoft Outlook Fatal Error. Please reboot your system.";}'


If you enter this command into Terminal, it will send the X-Message-Flag header with every message.

What’s interesting (and kind of fun) is how Microsoft Outlook interprets the “X-Message-Flag” header. It will show it a bit like a warning just above the e-mail headers.

dumb_outlook.png

I wonder how many people will reboot their PC during 2008 just because I have this header there :-)

It however rise another question : why are the Windows users still using Outlook, when you have good alternatives like Thunderbird ? And why are they paying for Office when you have the excellent Openoffice ?

Anyway, if you have interesting values for X-Message-Flag, let me know in comments.

If you get too many complaints and want to get rid of the flag above :

defaults read com.apple.mail UserHeaders
defaults delete com.apple.mail UserHeaders

Warning : I haven’t found how to delete a single User Header, this delete command get rid of all your custom headers.

Post a Comment

Your email is never published nor shared. Required fields are marked *

Powered by WP Hashcash