added option to specify imap server