Re: folder left after dm user.mailboxname, remove by rm ?

2019-02-05 Thread Patrick Boutilier

On 2/5/19 3:35 PM, Marcus Schopen wrote:

Hi Eric,

thanks for your time!

Am Dienstag, den 05.02.2019, 18:19 +0100 schrieb Eric Luyten:


I do not know what Cyrus version you are running but very
occasionally,
on a 2.3 system, I witness the same phenomenon.


It's a 2.4 version.


To give you an idea : this happens on average once every thousand
(or
so) account removals.

If Cyrus doesn't know about the directory through mailboxes.db it is
never going to remove it by itself.


I understand. Is it safe then to remove that "forgotten" folder by hand
(rm -rf ...).


I don't see why not. I have done it before. You can always just move it 
somewhere out of the way and move it back if it causes any issues.



Also, just wanted to point out another way of deleting users from 
"DELETED" without having to use expire.



localhost> lm DELETED.user.soandso.*
DELETED.user.soandso.5C3F3CFC (\HasNoChildren)
DELETED.user.soandso.sent-mail.5C3F3CFC (\HasNoChildren)


localhost> dm DELETED.user.soandso.*
Deleting mailbox DELETED.user.soandso.5C3F3CFC...OK.
Deleting mailbox DELETED.user.soandso.sent-mail.5C3F3CFC...OK.



Ciao!



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



<>
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

Re: folder left after dm user.mailboxname, remove by rm ?

2019-02-05 Thread Marcus Schopen
Hi Eric,

thanks for your time!

Am Dienstag, den 05.02.2019, 18:19 +0100 schrieb Eric Luyten:
> 
> I do not know what Cyrus version you are running but very
> occasionally, 
> on a 2.3 system, I witness the same phenomenon.

It's a 2.4 version.

> To give you an idea : this happens on average once every thousand
> (or 
> so) account removals.
> 
> If Cyrus doesn't know about the directory through mailboxes.db it is 
> never going to remove it by itself.

I understand. Is it safe then to remove that "forgotten" folder by hand
(rm -rf ...).

Ciao!



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


Re: folder left after dm user.mailboxname, remove by rm ?

2019-02-05 Thread Eric Luyten



On 05/02/2019 18:08, Marcus Schopen wrote:

Hi,

I've deleted an unused mailbox "dm user.emil" and cleaned up DELETED
with 'su - cyrus -c "/usr/sbin/cyrus expire -E 1 -X 0 -D 0 -v -p
DELETED.user.emil'.

/var/spool/cyrus/mail/u/DELETED/user is empty now and
"su - cyrus -c "/usr/sbin/ctl_mboxlist -d" | grep -i emil" doesn't show
any user.emil mailboxes anymore.

Nevertheless there is one single folder left on the master in

  /var/spool/cyrus/mail/e/user/emil/team/

which contains some messages and cyrus.cache, cyrus.header,
cyrus.header files. So this must have been a normal folder once.

If I understood that correctly, Cyrus doesn't know about the folder
anymore because the dump with "ctl_mboxlist -d" shows that the user has
been removed completely, no user.email folders are left in the dump
output.

Can I remove that folder securely just by

   rm -rf /var/spool/cyrus/mail/e/user/emil/

The following question would be, why the folder was not available in
the cyrus database. But since the user is deleted anyway, this would
not be my primary problem, especially since the user had worked with
Outlook and had hamstered about 11 GB and 1200 folders in his mailbox.



Hello Marcus,



I do not know what Cyrus version you are running but very occasionally, 
on a 2.3 system, I witness the same phenomenon.


To give you an idea : this happens on average once every thousand (or 
so) account removals.


If Cyrus doesn't know about the directory through mailboxes.db it is 
never going to remove it by itself.




Cheers,

Eric Luyten.



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


folder left after dm user.mailboxname, remove by rm ?

2019-02-05 Thread Marcus Schopen
Hi,

I've deleted an unused mailbox "dm user.emil" and cleaned up DELETED
with 'su - cyrus -c "/usr/sbin/cyrus expire -E 1 -X 0 -D 0 -v -p
DELETED.user.emil'.

/var/spool/cyrus/mail/u/DELETED/user is empty now and 
"su - cyrus -c "/usr/sbin/ctl_mboxlist -d" | grep -i emil" doesn't show
any user.emil mailboxes anymore.

Nevertheless there is one single folder left on the master in 

 /var/spool/cyrus/mail/e/user/emil/team/

which contains some messages and cyrus.cache, cyrus.header,
cyrus.header files. So this must have been a normal folder once.

If I understood that correctly, Cyrus doesn't know about the folder
anymore because the dump with "ctl_mboxlist -d" shows that the user has
been removed completely, no user.email folders are left in the dump
output.

Can I remove that folder securely just by

  rm -rf /var/spool/cyrus/mail/e/user/emil/

The following question would be, why the folder was not available in
the cyrus database. But since the user is deleted anyway, this would
not be my primary problem, especially since the user had worked with
Outlook and had hamstered about 11 GB and 1200 folders in his mailbox.

Ciao!
Marcus


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