Let me get this right - you stupidly send an insulting message about your boss to your boss, and he apologises for angering you?! If I were your boss you'd have been sacked on the spot. He seems far more reasonable and sound than most would be in that situation.