Forum Moderators: coopster

Message Too Old, No Replies

PHP & IMAP

i need help implementing imap functions in php

         

l008comm

12:17 am on Jan 26, 2005 (gmt 0)

10+ Year Member Top Contributors Of The Month



Hi
I've compiled IMAp functions into php, seen here:
[php.net...]
My server is hosting many mail accounts and I want to make an overview page that will get each users quota size and mailbox size.
You can see a similar sample of what I want to do here:
[us3.php.net...]
But that doesn't work for me, and I'm not sure if I'm filling out all the attributes properly either. Also this is a single script thats getting everyone's data at once, so it doesn't have the user's passwords and can't log in as each user, it needs to connect once and gather all user's data. I'm kinda confused as to the details of how to do this, any help would be greatly appreciated!
This might not even be a php issue, I might just have to set up some IMAP admin account? I'm not sure.

coopster

2:09 am on Jan 30, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



What's not working? Are you getting any error messages? This particular function seems to be per mailbox so you may have to loop through them to get what you are after...

l008comm

10:30 am on Jan 30, 2005 (gmt 0)

10+ Year Member Top Contributors Of The Month



I got some help from some cyrus people today and I made much more progress. I set up my cyrus admin user, and I can connect no problem. The issue is when i used the imap_get_quota function, it always returns the error "Quota root does not exist". This isn't right, because the users do exist, and they do have a quota. I even sent test emails, which showed up. And in the Server Admin app (I'm on OS X Server), I can view the users accounts and see their quota's, and yet, the PHP version gives me an error. We figured out that you do have to specify the mailbox name using a '/' instead of a '.', but that still didn't seem to help. I still get that error and I can't really figure out why. Any thoughts would be appreciated.