include("../functions/imap.php");
include("../functions/array.php");
- $imapConnection = loginToImapServer($username, $key, $imapServerAddress);
+ include("../src/load_prefs.php");
+
+ $imapConnection = loginToImapServer($username, $key, $imapServerAddress, 0);
getFolderList($imapConnection, $boxes);