Replying to emails at midnight only trains people to email you at midnight.
The Servers Volkswagen Put to Bed
In December 2011, Volkswagen's German works council realized that company-issued BlackBerrys had quietly turned every employee's living room into an unpaid night shift. Because conscientious staff answered late-evening messages, colleagues and managers learned that midnight was fair game.
Instead of sending another polite memo urging 'work-life balance,' Volkswagen reconfigured its email servers for over 1,000 unionized workers to stop routing emails thirty minutes after their shifts ended and resume only thirty minutes before the next morning's shift. Phone calls still worked for genuine emergencies, yet the midnight inbox vanished overnight. Boundaries do not work when announced in prose; they work when the server stops answering.
Source: BBC News & Business Insider coverage of Volkswagen Germany works council agreement (Dec 2011).