See: http://www.squirrelmail.org/docs/devel/devel-3.html