doveadm
Search Examples
Find messages that user1@domain.com sent to user2@domain.com before 2011-01-01:
doveadm search -u user@domain.com mailbox Sent TO user2@domain.com SENTBEFORE 2011-01-01Same query but display the physical size of the messages, along with the message filename:
doveadm fetch -u user@domain.com size.physical mailbox Sent TO user2@domain.com SENTBEFORE 2011-01-01Display just the physical size of the messages found:
doveadm -f tab fetch -u user@domain.com size.physical mailbox Sent TO user2@domain.com SENTBEFORE 2011-01-01A little awk addition to total up the message sizes and display it in megabytes:
doveadm -f tab fetch -u user@domain.com size.physical mailbox Sent TO user2@domain.com SENTBEFORE 2011-01-01 | awk '{s+=$1} END {print s/1024/1024}'- Log in to post comments