Can't delete old folders from before ALTNAMESPACE

2003-06-16 Thread Lee
Hey All,
One of our users has the following folders listed in his account:
user/joe/INBOX/A =D (\HasChildren)
user/joe/INBOX/A =D/Accounts (\HasNoChildren)
These folders don't exist because the were remnants of our mail system 
before we turned on ALTNAMESPACE. The problem is that when I try to 
delete the folder in cyradm or in outlook, cyrus just returns errors.

Any ideas?

Thanks,
Lee


Re: Can't delete old folders from before ALTNAMESPACE

2003-06-16 Thread Ken Murchison
Quoting Lee [EMAIL PROTECTED]:

 Hey All,
 One of our users has the following folders listed in his account:
 
 user/joe/INBOX/A =D (\HasChildren)
 user/joe/INBOX/A =D/Accounts (\HasNoChildren)
 
 These folders don't exist because the were remnants of our mail system 
 before we turned on ALTNAMESPACE. The problem is that when I try to 
 delete the folder in cyradm or in outlook, cyrus just returns errors.
 
 Any ideas?

You should be able to delete these from within cyradm as an admin, unless 
somebody deleted stuff by hand from the filesystem.

What errors are you getting from cyradm?

-- 
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp


Re: Can't delete old folders from before ALTNAMESPACE

2003-06-16 Thread Lee
You should be able to delete these from within cyradm as an admin, 
unless
somebody deleted stuff by hand from the filesystem.
I think that might be the problem.

When i try to SAM the folders pre-deletion in cyradm, i get a:

setaclmailbox: admin: lcp: System I/O error

Is there a way to force remove cyrus' internal list of those folders?

L

On Monday, June 16, 2003, at 01:50 PM, Ken Murchison wrote:

Quoting Lee [EMAIL PROTECTED]:

Hey All,
One of our users has the following folders listed in his account:
user/joe/INBOX/A =D (\HasChildren)
user/joe/INBOX/A =D/Accounts (\HasNoChildren)
These folders don't exist because the were remnants of our mail system
before we turned on ALTNAMESPACE. The problem is that when I try to
delete the folder in cyradm or in outlook, cyrus just returns errors.
Any ideas?
You should be able to delete these from within cyradm as an admin, 
unless
somebody deleted stuff by hand from the filesystem.

What errors are you getting from cyradm?

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp



Re: Can't delete old folders from before ALTNAMESPACE

2003-06-16 Thread Rob Siemborski
On Mon, 16 Jun 2003, Lee wrote:

  You should be able to delete these from within cyradm as an admin,
  unless
  somebody deleted stuff by hand from the filesystem.

 I think that might be the problem.

Don't do that! ;)

To fix the problem, recreate the directories in the filesystem,
reconstruct the mailboxes, and then delete them properly via cyradm.

 Is there a way to force remove cyrus' internal list of those folders?

Not any easy ways, there are some test utilities for cyrusdb functionality
that let you manipluate the database on a per-key basis.  They're in the
distribution, but they're a use-at-your-own-risk sort of thing.

-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper



Re: Can't delete old folders from before ALTNAMESPACE

2003-06-16 Thread John Alton Tamplin
Lee wrote:

You should be able to delete these from within cyradm as an admin, 
unless
somebody deleted stuff by hand from the filesystem.
I think that might be the problem.

When i try to SAM the folders pre-deletion in cyradm, i get a:

setaclmailbox: admin: lcp: System I/O error

Is there a way to force remove cyrus' internal list of those folders?
If you deleted them without Cyrus knowing about it, your best bet is to 
take Cyrus down, dump the mboxlist (ctl_mboxlist -d file.txt), edit the 
text version of the file to remove things that are no longer there, and 
then undump the mboxlist (ctl_mboxlist -u -f file.txt), and then bring 
everything up.  You really should not be deleting things under Cyrus's 
control except through Cyrus.

--
John A. Tamplin   Unix System Administrator
Emory University, School of Public Health +1 404/727-9931



Re: Can't delete old folders from before ALTNAMESPACE

2003-06-16 Thread Lee
I created the directories spool/imap/user/joe/INBOX and INBOX/A =D and 
INBOX/A =D/Accounts, then i ran recontruct -R on user/joe, but that 
just returned the following errors:

user.joe.INBOX.A =D: System I/O error Bad file descriptor
user.joe.INBOX.A =D.Accounts: System I/O error Bad file descriptor
This is odd since we're using the / as the directory seperator not . 
(which we used to use a long time ago).

BTW i also tried creating and reconstructing two top level directory 
folders spool/imap/user.joe.INBOX.A =D and spool/imap/user.joe.INBOX.A 
=D .Accounts, but it didn't change the error I recieved when running 
reconstruct.

Any other ideas?

L

On Monday, June 16, 2003, at 03:16 PM, Rob Siemborski wrote:

On Mon, 16 Jun 2003, Lee wrote:

You should be able to delete these from within cyradm as an admin,
unless
somebody deleted stuff by hand from the filesystem.
I think that might be the problem.
Don't do that! ;)

To fix the problem, recreate the directories in the filesystem,
reconstruct the mailboxes, and then delete them properly via cyradm.
Is there a way to force remove cyrus' internal list of those folders?
Not any easy ways, there are some test utilities for cyrusdb 
functionality
that let you manipluate the database on a per-key basis.  They're in 
the
distribution, but they're a use-at-your-own-risk sort of thing.

-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper



Re: Can't delete old folders from before ALTNAMESPACE

2003-06-16 Thread John Alton Tamplin
Lee wrote:

Will this cause any problems with seen / unseen flags (or anything for 
that matter)?
Seen flags are kept in a different database, under 
/var/imap/user/X/user.seen.  I presume Cyrus gracefully deals with 
nonexistent folders in the seen/sub files, but I haven't looked at that 
part of the code so conceivably that might be a problem.

If you want to be sure, restore the missing directories from backup and 
delete them the proper way though Cyrus.

--
John A. Tamplin   Unix System Administrator
Emory University, School of Public Health +1 404/727-9931



Re: Can't delete old folders from before ALTNAMESPACE

2003-06-16 Thread Lee
Will this cause any problems with seen / unseen flags (or anything for 
that matter)?

L

On Monday, June 16, 2003, at 03:34 PM, John Alton Tamplin wrote:

Lee wrote:

You should be able to delete these from within cyradm as an admin, 
unless
somebody deleted stuff by hand from the filesystem.
I think that might be the problem.

When i try to SAM the folders pre-deletion in cyradm, i get a:

setaclmailbox: admin: lcp: System I/O error

Is there a way to force remove cyrus' internal list of those folders?
If you deleted them without Cyrus knowing about it, your best bet is 
to take Cyrus down, dump the mboxlist (ctl_mboxlist -d file.txt), 
edit the text version of the file to remove things that are no longer 
there, and then undump the mboxlist (ctl_mboxlist -u -f file.txt), and 
then bring everything up.  You really should not be deleting things 
under Cyrus's control except through Cyrus.

--
John A. Tamplin   Unix System Administrator
Emory University, School of Public Health +1 404/727-9931