Re: Injecting a mail folder into a users inbox/restore from backup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/12/2012 08:16 AM, Michael Neumann wrote:
Am 12.12.2012 10:20, schrieb Sebastian Hagedorn:
It pays to read the archive:

<https://lists.andrew.cmu.edu/pipermail/info-cyrus/2012-January/035731.html>
Yes, sorry and thanks, that clarifies it.

For what it's worth, you can also set expire times, for specific mailboxes, via annotations.  We frequently use a script like this to handle such a task on a regular basis, to accommodate users who delete and recreate mailboxes we wish to handle exceptionally:
-----------------------------------------------------------------
#!/bin/sh
#
# set_cyrus_annotations.sh - Set the standard annotations for the Spam,
#                            Trash and systems mailboxes so they expire
#                            properly.
#
USER=<cyrus user>
PASS=secret
HOST=localhost

cyradm -u $USER -w "$PASS" $HOST << _EOF_
mboxcfg systems expire 60
mboxcfg user/%/Spam expire 7
mboxcfg user/%/Trash expire 2
_EOF_
-----------------------------------------------------------------

Also, as to documentation, the Kolab folks have some good info available here, including a step-by-step guide to locating and restoring (via cyradm rename) deleted mailboxes.  This is the way to go, and the Perl example there shows how to make sense of the datestamp on folders in the DELETED hierarchy.

Cheers,
    -nic
-- 
Nic Bernstein                             nic@xxxxxxxxxxx
Onlight, Inc.                             www.onlight.com
219 N. Milwaukee St., Suite 2a            v. 414.272.4477
Milwaukee, Wisconsin  53202
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux