Possible to use Doveadm for a time range deletion

Timo Sirainen tss at iki.fi
Tue Apr 26 16:20:10 UTC 2016


On 15 Apr 2016, at 17:42, Kenneth Ulrich <ulrichkenneth at gmail.com> wrote:
> 
> Hello All,
> 
> I was wondering if it s possible to remove emails between a time range.
> 
> For example, End Users have emails dating back to Aug 2000. He would like
> all emails deleted between the time stamp of 07/2014 to 07/2015 yet keep
> any emails outside of this area.
> 
> I've ran into some similar examples, but nothing definite.

I think something like:

doveadm expunge -u user at domain since 2014-07-01 before 2015-07-01

Check first that this looks right:

doveadm fetch -u user at domain date.sent since 2014-07-01 before 2015-07-01



More information about the dovecot mailing list