keep connection open;
reconnect if failed;
status icon in notification area
show new emails in window
thread-safe way to communicate;
update ui only if something is changed
add locks
queue of commands, only one thread performs them
buttons to archive and delete emails
refresh button