Is there a simple way to query courier to get this info or do I simply have to query each individual mailbox?
--
'Never build a dungeon you wouldn't be happy to spend the night in yourself,' said the Patrician (...). 'The world would be a happier place if more people remembered that.' --Guards! Guards!
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
courier-users mailing list
courie...@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
> I know dovecot has a command that returns the names of all the mailboxes with new mail (and the counts, as I recall), but I'm not using dovecot.
>
> Is there a simple way to query courier to get this info or do I simply have to query each individual mailbox?
Start with the following, make it as fancy as you want:
for f in $HOME/Maildir/.*/new
do
echo $f `ls $f`
done
Right. I was looking for an IMAP solution. Something I could query Courier with.
Also, since many messages in /cur/ are unread, and therefor for all intents and purposes, 'new', I suppose I should have said unread instead of new.
--
>From deep inside the tears that I'm forced to cry
>From deep inside the pain I--I chose to hide
> On 17-Nov-2009, at 20:44, Sam Varshavchik wrote:
>> LuKreme writes:
>>
>>> I know dovecot has a command that returns the names of all the mailboxes with new mail (and the counts, as I recall), but I'm not using dovecot.
>>> Is there a simple way to query courier to get this info or do I simply have to query each individual mailbox?
>>
>> Start with the following, make it as fancy as you want:
>>
>> for f in $HOME/Maildir/.*/new
>> do
>> echo $f `ls $f`
>> done
>
> Right. I was looking for an IMAP solution. Something I could query Courier with.
If you want an IMAP solution, use any IMAP utility that claims to do that.
There's nothing special about Courier. An IMAP utility that shows unread
message counts in IMAP folders will work with Courier as well as with any
other IMAP server.