add fetch mailbox functionality