Home > Computers > mail > dovecot > Searching for mail | About

Searching for mail

Example : search all mail from joe to sally, show subject and date only.

root@messagerie-secours[CHROOT][] ~ # doveadm fetch -u sally@mydomain.tld hdr from joe | egrep '(Date|Subject)'
Date: Tue, 04 Jul 2017 11:29:43 +0100
Subject: Fwd: maintenance preventive
Date: Tue, 04 Jul 2017 16:24:53 +0100
Subject: Fwd: maintenance preventive
  1. fetch -u sally@mydomain.tld is the user. It will search only in sally's inbox
  2. hdr : is the output. It will only output the header. It's also the only interesting output argument and you will likely always use it.
  3. from joe : is the search query, which can also be "all".

contact : @ychaouche yacinechaouche at yahoocom

QR Code
QR Code Searching for mail (generated for current page)