mail support
Added main log support