allow specifying explicit from and to parameters

sometimes you know exactly which message or range of messages (by `imapSeqNo`) you want to retrieve, so with this change it's possible to specify that explicitly