Fix event log bugs, make mail senders log state to event log