Deleting messages from account using the CLI: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{BC|Certified}} | ||
__FORCETOC__ | |||
<div class="col-md-12 ibox-content"> | |||
=Deleting messages from account using the CLI= | =Deleting messages from account using the CLI= | ||
{{KB|{{ZC}}|{{ZCS 8.6}}|{{ZCS 8.5}}|{{ZCS 8.0}}}} | |||
{{WIP}} | |||
==Purpose== | ==Purpose== | ||
CLI method for deleting messages off a specific user account. | CLI method for deleting messages off a specific user account. |
Latest revision as of 17:35, 11 July 2015
Deleting messages from account using the CLI
Purpose
CLI method for deleting messages off a specific user account.
Resolution
In order to delete the message, you need to identify the message "msgid". First, note which user you are trying to delete (replace user@domain.com with the user you are trying to target), then issue the following command to find the message "msgid" that you want to delete:
zmmailbox -z -m user@domain.com s -t message -l 50 "in:inbox date:01/01/2015"
The above command will search a specific folder, Inbox in this case. Displays only messages dated 01/01/2015. Lists up to 50 messages.
You will see something like the following after issuing the above command:
Id Type From Subject Date ---- ---- ---------------- ------------------------------------------ -------------- 1. 432 mess user Daily mail report for 2015-01-01 01/01/15 23:30 2. 431 mess user ZCS Backup Report: SUCCESS 01/01/15 01:00
The "msgid" is the first column labeled "Id".
This number can be used to delete the message by issuing the following command:
zmmailbox -z -m admin@william3.us.zimbralab.com deleteMessage 431
Additional Content
- Link to a Wiki article - zmmailbox Wiki