UID to file?
Aki Tuomi
aki.tuomi at open-xchange.com
Thu May 9 09:18:28 EEST 2019
On 9.5.2019 0.39, Carles Pina i Estany via dovecot wrote:
> Hello,
>
> In the past I was in a situation that given an email UID I wanted to
> know which file in the Maildir directory this UID was saved.
>
> I did a small parser for $HOME/Maildir/dovecot-uidlist where, if the
> file had:
>
> 1000 W1838 S1796 :1557351041.10447_1.example
>
> I would ask for the UID 1000 and would return
> :1557351041.10447_1.example (and I knew that it was in
> $HOME/Maildir/new)
>
> Is there any other way using dovecot tools to do the same, to avoid
> parsing an internal dovecot file?
>
> Thank you!
>
doveadm fetch -u victim storageid search query
Aki
More information about the dovecot
mailing list