session management and email threading