UID to file?
Carles Pina i Estany
carles at pina.cat
Thu May 9 10:07:02 EEST 2019
Hi,
On May/09/2019, Aki Tuomi wrote:
>
> 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
Thanks! It worked! Example:
doveadm fetch -u carles storageid UID 111487
Cheers,
--
Carles Pina i Estany
GPG Key 0x8CD5C157
More information about the dovecot
mailing list