better state logging msgs
interrupts
etags support
periodic sync
closing mails by tasks