Retrieving number of emails in specific email account

icishoot

Member
Jun 18, 2007
6
0
51
Good evening,

I was wondering the best way to retrieve the number of emails a specific account has, both new and total messages in the account?

Several of my forum users have personal email accounts through the forum domain and I thought it would be neat to display the number of emails they have sitting in their accounts as part of their forum profile - the same way PM's are displayed.

I have been looking through the cpanel Email API, but nothing is leaping out as what I'm looking for.

Does API exist for that already? Or am I just going to need to use system calls?


Thanks,

Seth
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
79
458
cPanel Access Level
Root Administrator
You need to query the IMAP service to get this information. To query the IMAP service you will need the user name and password for each account to query.