[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dovecot
Subject:    Tools to get a report of which folders have new mail?
From:       delrio () mie ! utoronto ! ca (Oscar del Rio)
Date:       2022-07-20 20:26:17
Message-ID: 3ae766a7-c5db-46c0-f752-79b211952d81 () mie ! utoronto ! ca
[Download RAW message or body]

On 2022-07-18 11:18 p.m., Steve Litt wrote:
> 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?
>


you could use "doveadm mailbox list" to build the list of folders and
"doveadm search" to search each folder for appropriate IMAP flags
https://wiki2.dovecot.org/Tools/Doveadm/SearchQuery

e.g.
doveadm mailbox list -u username | sort
doveadm search -u username mailbox foldername UNSEEN
(or NEW instead of UNSEEN)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic