[email lib] [receive] import webnotes
[scheduler] [logging] when logging, if no connection, create a new connection
[scheduler] [fix] save scheduler_last_event at the start of scheduler