Add dmesg emailing and clearing