[cyrus-imapd] unexpunge folder problem
Hi, I have a problem using unexpunge. It works as expected recovering INBOX messages, but if I delete an entire folder, I can't see it on 'unexpunge -l user/@'. I also tried 'unexpunge -l user//@', where is the folder deleted that I want unexpunge. Same problem if I delete the entire mailbox (with dm user/@ from cyradm). If I recreate the user I can't recover it with unexpunge, even if cyradm 'lm' command show DELETED/user/@. Could you help me? This is my conf (Invoca RPM build with delete_mode:delayed and expunge_mode:delayed): configdirectory: /var/lib/imap partition-default: /var/spool/imap altnamespace: 1 serverinfo: on admins: cyrus sievedir: /var/lib/imap/sieve autosievefolders: Spam autocreate_sieve_script: /var/lib/imap/sieve/spam_script autocreate_sieve_compiledscript: /var/lib/imap/sieve/spam_script_compiled generate_compiled_sieve_script: 1 sendmail: /usr/sbin/sendmail hashimapspool: true sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN quotawarn: 80 normalizeuid: 1 syslog_prefix: cyrus unixhierarchysep: 1 autocreatequota: 20480 createonpost: 1 autosubscribe_all_sharedfolders: yes singleinstancestore: 1 defaultdomain: cyrcyr.it improved_mboxlist_sort: 1 virtdomains: userid quotadb: skiplist # Apply condostore mailbox_default_options: 2 My cyrus version is name : Cyrus IMAPD version: v2.3.16-Invoca-RPM-2.3.16-1 2009/12/21 13:09:10 vendor : Project Cyrus support-url: http://cyrusimap.web.cmu.edu os : Linux os-version : 2.6.18-164.el5 environment: Built w/Cyrus SASL 2.1.22 Running w/Cyrus SASL 2.1.22 Built w/Sleepycat Software: Berkeley DB 4.3.29: (February 19, 2009) Running w/Sleepycat Software: Berkeley DB 4.3.29: (February 19, 2009) Built w/OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 Running w/OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 Built w/zlib 1.2.3 Running w/zlib 1.2.3 CMU Sieve 2.3 TCP Wrappers mmap = shared lock = fcntl nonblock = fcntl idle = idled Thank you very much Regards Marco Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: [cyrus-imapd] unexpunge folder problem
Hi Marco, --On 15. April 2010 14:35:02 +0200 Marco wrote: I have a problem using unexpunge. It works as expected recovering INBOX messages, but if I delete an entire folder, I can't see it on 'unexpunge -l user/@'. it doesn't work like that. Try it like this instead: % cyradm cyrus Password: cyrus.rrz.uni-koeln.de> lm DELETED/user/xxx/* DELETED/user/xxx/deletetest/48883148 (\HasNoChildren) cyrus.rrz.uni-koeln.de> rename 'DELETED/user/xxx/deletetest/48883148' user/xxx/test -- .:.Sebastian Hagedorn - RZKR-R1 (Gebäude 52), Zimmer 18.:. .:.Regionales Rechenzentrum (RRZK).:. .:.Universität zu Köln / Cologne University - ✆ +49-221-478-5587.:. p7s1gVPNqGVG4.p7s Description: S/MIME cryptographic signature Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: [cyrus-imapd] unexpunge folder problem
Hi Marco, unexpunge will only recover deleted messages within a folder. You will need to rename the mailbox from DELETED/user/xxx/yyy back to the correct location. Cheeers, Ken On Thu, Apr 15, 2010 at 02:35:02PM +0200, Marco wrote: > Hi, > I have a problem using unexpunge. It works as expected recovering > INBOX messages, but if I delete an entire folder, I can't see it on > 'unexpunge -l user/@'. I also tried 'unexpunge -l > user//@', where is the folder deleted > that I want unexpunge. > > Same problem if I delete the entire mailbox (with dm > user/@ from cyradm). If I recreate the user I can't > recover it with unexpunge, even if cyradm 'lm' command show > DELETED/user/@. > > Could you help me? > > This is my conf (Invoca RPM build with delete_mode:delayed and > expunge_mode:delayed): > > configdirectory: /var/lib/imap > partition-default: /var/spool/imap > altnamespace: 1 > serverinfo: on > admins: cyrus > > sievedir: /var/lib/imap/sieve > autosievefolders: Spam > autocreate_sieve_script: /var/lib/imap/sieve/spam_script > autocreate_sieve_compiledscript: /var/lib/imap/sieve/spam_script_compiled > generate_compiled_sieve_script: 1 > > sendmail: /usr/sbin/sendmail > hashimapspool: true > sasl_pwcheck_method: saslauthd > sasl_mech_list: PLAIN > > > quotawarn: 80 > normalizeuid: 1 > syslog_prefix: cyrus > unixhierarchysep: 1 > autocreatequota: 20480 > createonpost: 1 > autosubscribe_all_sharedfolders: yes > singleinstancestore: 1 > defaultdomain: cyrcyr.it > improved_mboxlist_sort: 1 > virtdomains: userid > quotadb: skiplist > > # Apply condostore > mailbox_default_options: 2 > > My cyrus version is > name : Cyrus IMAPD > version: v2.3.16-Invoca-RPM-2.3.16-1 2009/12/21 13:09:10 > vendor : Project Cyrus > support-url: http://cyrusimap.web.cmu.edu > os : Linux > os-version : 2.6.18-164.el5 > environment: Built w/Cyrus SASL 2.1.22 > Running w/Cyrus SASL 2.1.22 > Built w/Sleepycat Software: Berkeley DB 4.3.29: > (February 19, 2009) > Running w/Sleepycat Software: Berkeley DB 4.3.29: > (February 19, 2009) > Built w/OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 > Running w/OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 > Built w/zlib 1.2.3 > Running w/zlib 1.2.3 > CMU Sieve 2.3 > TCP Wrappers > mmap = shared > lock = fcntl > nonblock = fcntl > idle = idled > > > Thank you very much > Regards > Marco > > > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: [cyrus-imapd] unexpunge folder problem
On Thu, April 15, 2010 2:40 pm, Sebastian Hagedorn wrote: > Hi Marco, > > > --On 15. April 2010 14:35:02 +0200 Marco wrote: > > >> I have a problem using unexpunge. It works as expected recovering >> INBOX messages, but if I delete an entire folder, I can't see it on >> 'unexpunge -l user/@'. >> > > it doesn't work like that. Try it like this instead: > > % cyradm cyrus > Password: > cyrus.rrz.uni-koeln.de> lm DELETED/user/xxx/* > DELETED/user/xxx/deletetest/48883148 (\HasNoChildren) > cyrus.rrz.uni-koeln.de> rename 'DELETED/user/xxx/deletetest/48883148' > user/xxx/test All, While we're at it : what happens on a Cyrus server with two or more partitions ? Does a mail folder delete imply a move to the 'default' partition or can every partition have its own 'DELETED/user/...' hierarchy ? Eric Luyten. Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: [cyrus-imapd] unexpunge folder problem
--On 15. April 2010 15:06:01 +0200 Eric Luyten wrote: While we're at it : what happens on a Cyrus server with two or more partitions ? Does a mail folder delete imply a move to the 'default' partition or can every partition have its own 'DELETED/user/...' hierarchy ? The latter ... -- .:.Sebastian Hagedorn - RZKR-R1 (Gebäude 52), Zimmer 18.:. .:.Regionales Rechenzentrum (RRZK).:. .:.Universität zu Köln / Cologne University - ✆ +49-221-478-5587.:. p7sfXRnCetGXe.p7s Description: S/MIME cryptographic signature Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: [cyrus-imapd] unexpunge folder problem
--On Thursday, April 15, 2010 3:06 PM +0200 Eric Luyten wrote: > While we're at it : what happens on a Cyrus server with two or more > partitions ? Does a mail folder delete imply a move to the 'default' > partition or can every partition have its own 'DELETED/user/...' > hierarchy ? DELETED is in same the partition the user is in. Joseph Brennan Columbia University Information Technology Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: [cyrus-imapd] unexpunge folder problem
I see there is the patch #3244 that could be useful to restore recursively subfolders. Unfortunately, it has not included in 2.4 version of Cyrus-imapd, as I can see. Thanks again, Regards Marco > Hi Marco, > > unexpunge will only recover deleted messages within a folder. > You will need to rename the mailbox from DELETED/user/xxx/yyy > back to the correct location. > > Cheeers, > Ken > > On Thu, Apr 15, 2010 at 02:35:02PM +0200, Marco wrote: >> Hi, >> I have a problem using unexpunge. It works as expected recovering >> INBOX messages, but if I delete an entire folder, I can't see it on >> 'unexpunge -l user/@'. I also tried 'unexpunge -l >> user//@', where is the folder deleted >> that I want unexpunge. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/