Making a number of private functions public as the scope should not get restricted entirely to IMAP