Also invoke imap_get_folder_list().

Defined some needed functions.