Getting unread message count for all users.

Ken Murchison ken at
Sat Jan 24 15:08:35 EST 2004

Rob Keeling wrote:
> From: "Scott Russell" <lnxgeek at>
> To: "Rob Keeling" <rob at>
> Cc: <info-cyrus at>
> Sent: Saturday, January 24, 2004 7:08 PM
> Subject: Re: Getting unread message count for all users.
>>On Sat, 2004-01-24 at 07:42, Rob Keeling wrote:
>>Here is a pointer using the PHP imap_status() function to get the info
>>you're after:
>>The example script on that page should be a good starting point for you.
> I have given this a try, however, I get a logon fail error, and the system
> log shows a md5 logon.
> Jan 24 19:59:14 suse-server imapd[6138]: no secret in database
> Jan 24 19:59:14 suse-server imapd[6138]: badlogin: localhost[]
> CRAM-MD5 [SASL(-13): user not found: no secret in database]
> I am using plain text passwords, do I need to specify this in the connect
> command?

You either need to specify which mechanism you want to use when you 
authenticate with the PHP/c-client interface, or configure the server to 
only advertise plaintext mechanisms.  To do the latter, add the 
following to imapd.conf:

sasl_mech_list: PLAIN LOGIN

Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--

More information about the Info-cyrus mailing list