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][10.10.10.19] ~ # 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.
  3. from joe : is the search query

contact : @ychaouche yacinechaouche at yahoocom


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