Tools to get a report of which folders have new mail?

Steve Litt slitt at troubleshooters.com
Tue Jul 19 07:22:20 UTC 2022


On Tue, 2022-07-19 at 09:19 +0300, Aki Tuomi wrote:
> 
> > On 19/07/2022 06:18 EEST Steve Litt <slitt at troubleshooters.com>
> > wrote:
> > 
> >  
> > Hi all,
> > 
> > I use a Dovecot IMAP server on my Linux desktop computer, and I'm
> > pretty good at writing shellscripts. Is there any way I could use
> > doveadm or other tools to create a report that shows all my folders
> > in a
> > hierarchy? Also, is there a way to show only those with new mail?
> > 
> > Thanks,
> > 
> > SteveT
> > 
> > Steve Litt 
> > Summer 2022 featured book: Thriving in Tough Times
> > http://www.troubleshooters.com/bookstore/thrive.htm
> 
> doveadm -fjson mailbox status -u user unseen "*"
> 

Very nice Aki! I can pass that JSON to a Python program I make to parse
JSON, and then just report the ones not having "unseen":"0" . Thank
you!

SteveT



More information about the dovecot mailing list