How to delete old emails from an account (ZCS 7.02)

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
theboina
Advanced member
Advanced member
Posts: 69
Joined: Sat Sep 13, 2014 1:41 am

How to delete old emails from an account (ZCS 7.02)

Postby theboina » Fri Jan 10, 2014 4:42 pm

How I can delete old emails from some accounts. I only need the last year. Some accounts has 20 Gb of old emails!!!
I can't see any option to do that...There are any script or command??
Thank!!


oczek
Posts: 7
Joined: Sat Sep 13, 2014 2:21 am

How to delete old emails from an account (ZCS 7.02)

Postby oczek » Mon Jan 13, 2014 7:23 pm

[quote user="theboina"]How I can delete old emails from some accounts. I only need the last year. Some accounts has 20 Gb of old emails!!!
I can't see any option to do that...There are any script or command??
Thank!![/QUOTE]
You can use cli with zmmailbox commands or just use web search.
On forum you can find how to use zmmailbox to search messages older then some date.
theboina
Advanced member
Advanced member
Posts: 69
Joined: Sat Sep 13, 2014 1:41 am

How to delete old emails from an account (ZCS 7.02)

Postby theboina » Tue Jan 14, 2014 4:27 pm

With the web search I only can search "last year" but I cannot specify an specific range of dates.
How I can do it with zmmailbox???
Thanks Oczek
oczek
Posts: 7
Joined: Sat Sep 13, 2014 2:21 am

How to delete old emails from an account (ZCS 7.02)

Postby oczek » Tue Jan 14, 2014 5:31 pm

[quote user="theboina"]With the web search I only can search "last year" but I cannot specify an specific range of dates.

[/QUOTE]

On the websearch u can specify date range, example: after:12-01-01 before:13-01-01
[quote user="theboina"]

How I can do it with zmmailbox???
Thanks Oczek[/QUOTE]
zmmailbox help search
I dont remember exactly the command, but somethink like: zmmailbox -z -m account@domain.tld s -t 1000 after:12-01-01

Return to “Administrators”

Who is online

Users browsing this forum: MSN [Bot] and 16 guests