Wednesday, October 21, 2009

Sending UTF8 encoded vacation mail

It's simple! Just include the following headers in your $HOME/.vacation.msg:-


MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit


So a full .vacation.msg would look like this:

MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Subject: Out of office: "$SUBJECT"

Your mail concerning "$SUBJECT" will be read when I return.