Commit da987d93 authored by Manfred Kutas's avatar Manfred Kutas

ZP-736 listfolders.php should also list "Sent items" and "Inbox".

Released under the Affero GNU General Public License (AGPL) version 3.
parent 5951080e
...@@ -179,7 +179,7 @@ function listfolders_getlist ($adminStore, $session, $user) { ...@@ -179,7 +179,7 @@ function listfolders_getlist ($adminStore, $session, $user) {
if (strtoupper($user) != 'SYSTEM') { if (strtoupper($user) != 'SYSTEM') {
$inbox = mapi_msgstore_getreceivefolder($userStore); $inbox = mapi_msgstore_getreceivefolder($userStore);
if(mapi_last_hresult() != NOERROR) { if(mapi_last_hresult() != NOERROR) {
printf("Could not open inbox for %s (%08X). The script will exit.\n", $user, mapi_last_hresult()); printf("Could not open inbox for %s (0x%08X). The script will exit.\n", $user, mapi_last_hresult());
exit (1); exit (1);
} }
$inboxProps = mapi_getprops($inbox, array(PR_SOURCE_KEY)); $inboxProps = mapi_getprops($inbox, array(PR_SOURCE_KEY));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment