user X: usual user
user ARC: an archivist, who receives all of domain's email via always_bcc in postfix's configuration.
User X downloads her mail with Outlook Express. The OE is set to delete mails from mailbox after retrieval.
Now X wants to get some of her messages back. The only way is use ARC's archive.
To choose messages addressed to X I've used the following command:
OK, message files are now in X's storage. But they aren't visible with pop3/imap/web clients at all. And they're not counted in X's quota.
cp `grep -i -e "to: *X's-email-addr" -r -l /opt/zimbra/store/0/ARC's-store/msg/` /opt/zimbra/store/0/X's-store/msg/0/
Re-indexing of X's mailbox does nothing. Complete index removal with re-creation does the same - nothing.
Question: what should I do to make X happy reader of her old incoming messages?