Tell me how to get all the letters in the box.

Team type

/opt/zimbra/bin/zmmailbox -z -m user@mail.com s -l 1000 in:Inbox 

The maximum output is 1000 letters, and even if you apply grep to it for sorting

/ opt / zimbra / bin / zmmailbox -z -m $ is -l 1000 in: Inbox | grep "01/02/12"

it will produce an empty result, since the date of this letter simply will not come if there are about 12,000 letters in the box.

As they say here

 search(s) [opts] {query} -v/--verbose verbose output -t/--types <arg> list of types to search for (message,conversation,contact,appointment,document,task,wiki) -s/--sort <arg> sort order TODO -c/--current current page of search results --dumpster search in dumpster -p/--previous previous page of search results -n/--next next page of search results -l/--limit <arg> max number of results to return (1-1000, default=25) 

Maybe as it is possible to increase the limit .. earlier, it was possible and 9999 - but this is a long time ago, now we are talking about version 7 of zimbra.

I tried to put the key -n / -p - it displays an empty result, although I thought that it showed me the predecessor / next page, well, or did not understand where to put this key.

I can get the number of letters in the folder

 /opt/zimbra/bin/zmmailbox -z -m user@mail.com gaf | grep mess Id View Unread Msg Count Path ---------- ---- ---------- ---------- ---------- 14 mess 0 1564 /Chats 6 mess 0 56 /Drafts 2 mess 0 5352 /Inbox 65450 mess 0 12433 /Inbox/до 1.04.2015 31907 mess 0 3125 /Inbox/Маркетинг 5993 mess 0 881 /Inbox/Юр 4 mess 0 0 /Junk 5 mess 0 7527 /Sent 

But get all the messages - I can not ...

Let me explain why this may be a decision on the other hand: It is necessary to delete letters that were 4 years ago, and as I wrote above, when outputting 1000 letters, I do not receive all the necessary letters.

Tell me where to look ...

    1 answer 1

    Here is a small shift

     /opt/zimbra/bin/zmmailbox -z -m user@mail.com s -t mess "Date: 06/25/12" 

    But until I understood how to use regular expressions here.

    And so you can get messages before the desired date

     /opt/zimbra/bin/zmmailbox -z -m user@mail.com s -t mess "before: 01/01/13" 

    But at the same time, you can not specify a folder - it looks at all

    This is how the output will be exactly the correspondence, conversations

     /opt/zimbra/bin/zmmailbox -z -m user@mail.com s -t conv "before: 01/01/13" 

    but the output will be only 20, to increase the list we set -l 1000 - already better, here at least within the date ...