Honor the viewer option “Email me IMs when I’m offline”. Useful with OpenSimulator 0.7 and 0.8. Works also with 0.9 but I am not sure if this functionality is now handled or not by OpenSimulator 0.9 core modules.

https://git.magiiic.com/opensimulator/offline-mail-forwarding