Cyrus bug when returning mailbox names

2003-04-03 Thread Ian Macdonald
Hi,

There seems to be a bug in the Cyrus code that incorrectly returns the
name of a mailbox with a trailing space as that name without the space:

[EMAIL PROTECTED] telnet cyrus 143
Trying 1.2.3.4...
Connected to cyrus.
Escape character is '^]'.
* OK babbage.corp.google.com Cyrus IMAP4 v2.1.12 server ready
. login tommy password
. OK User logged in
. list user.tommy.Agencies *Realty*
* LIST (\HasNoChildren) . user.tommy.Agencies.Bay Area Agencies.Street Media.VIP 
Realty
. OK Completed (0.000 secs 2 calls)

[EMAIL PROTECTED] root]# ls -ld /var/spool/imap/user/tommy/Agencies/Bay\ Area\ 
Agencies/Street\ Media/VIP\ Realty/
ls: /var/spool/imap/user/tommy/Agencies/Bay Area Agencies/Street Media/VIP Realty/: No 
such file or directory
[EMAIL PROTECTED] root]# ls -ld /var/spool/imap/user/tommy/Agencies/Bay\ Area\ 
Agencies/Street\ Media/VIP\ Realty\ /
drwx--2 cyrusroot  552 Aug  9  2002 
/var/spool/imap/user/tommy/Agencies/Bay Area Agencies/Street Media/VIP Realty /

Is there a simple way to rename this mailbox without the space, so that
attempts to perform operations on it do not fail? Maybe it's as simple
as renaming it at the file-system level, as Cyrus seems to think it
lacks the space, anyway.

Ian
-- 
Ian Macdonald   | The most important things, each person must
System Administrator| do for himself. 
Google, Inc.| 
[EMAIL PROTECTED]  | 
+1 650-623-4265 | 


Re: Cyrus bug when returning mailbox names

2003-04-03 Thread Rob Siemborski
On Thu, 3 Apr 2003, Ian Macdonald wrote:

 [EMAIL PROTECTED] telnet cyrus 143
 Trying 1.2.3.4...
 Connected to cyrus.
 Escape character is '^]'.
 * OK babbage.corp.google.com Cyrus IMAP4 v2.1.12 server ready
 . login tommy password
 . OK User logged in
 . list user.tommy.Agencies *Realty*
 * LIST (\HasNoChildren) . user.tommy.Agencies.Bay Area Agencies.Street Media.VIP 
 Realty
 . OK Completed (0.000 secs 2 calls)

 [EMAIL PROTECTED] root]# ls -ld /var/spool/imap/user/tommy/Agencies/Bay\ Area\ 
 Agencies/Street\ Media/VIP\ Realty/
 ls: /var/spool/imap/user/tommy/Agencies/Bay Area Agencies/Street Media/VIP Realty/: 
 No such file or directory
 [EMAIL PROTECTED] root]# ls -ld /var/spool/imap/user/tommy/Agencies/Bay\ Area\ 
 Agencies/Street\ Media/VIP\ Realty\ /
 drwx--2 cyrusroot  552 Aug  9  2002 
 /var/spool/imap/user/tommy/Agencies/Bay Area Agencies/Street Media/VIP Realty /

 Is there a simple way to rename this mailbox without the space, so that
 attempts to perform operations on it do not fail? Maybe it's as simple
 as renaming it at the file-system level, as Cyrus seems to think it
 lacks the space, anyway.

How was this mailbox created?  I can't duplicate this behavior with a
simple case:

x create inbox.xyzzy 
x OK Completed
x list  inbox.xyzz*
* LIST (\HasNoChildren) . inbox.xyzzy 
x OK Completed

-Rob

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



Re: Cyrus bug when returning mailbox names

2003-04-03 Thread Morgan Sackett
Ian Macdonald wrote:

Hi,

There seems to be a bug in the Cyrus code that incorrectly returns the
name of a mailbox with a trailing space as that name without the space:
[EMAIL PROTECTED] telnet cyrus 143
Trying 1.2.3.4...
Connected to cyrus.
Escape character is '^]'.
* OK babbage.corp.google.com Cyrus IMAP4 v2.1.12 server ready
. login tommy password
. OK User logged in
. list user.tommy.Agencies *Realty*
* LIST (\HasNoChildren) . user.tommy.Agencies.Bay Area Agencies.Street Media.VIP 
Realty
. OK Completed (0.000 secs 2 calls)
[EMAIL PROTECTED] root]# ls -ld /var/spool/imap/user/tommy/Agencies/Bay\ Area\ 
Agencies/Street\ Media/VIP\ Realty/
ls: /var/spool/imap/user/tommy/Agencies/Bay Area Agencies/Street Media/VIP Realty/: No 
such file or directory
[EMAIL PROTECTED] root]# ls -ld /var/spool/imap/user/tommy/Agencies/Bay\ Area\ 
Agencies/Street\ Media/VIP\ Realty\ /
drwx--2 cyrusroot  552 Aug  9  2002 
/var/spool/imap/user/tommy/Agencies/Bay Area Agencies/Street Media/VIP Realty /
Is there a simple way to rename this mailbox without the space, so that
attempts to perform operations on it do not fail? Maybe it's as simple
as renaming it at the file-system level, as Cyrus seems to think it
lacks the space, anyway.
Ian
 

Try doing some mailbox manipulation.

First, dump the mailboxes.db file to something you can edit:

su - cyrus
cd /var/spool/imap
ctl_mboxlist -d  badmailboxes
Edit badmailboxes to remove the problem name, and move the bad directory 
on the filesystem to the new name.

Now load the mailboxes file back to db format:

ctl_mboxlist -u  badmailboxes
ctl_cyrusdb -c
That should fix your problem.




Re: Cyrus bug when returning mailbox names

2003-04-03 Thread Ian Macdonald
On Thu 03 Apr 2003 at 13:45:46 -0500, you wrote:

 How was this mailbox created?  I can't duplicate this behavior with a
 simple case:
 
 x create inbox.xyzzy 
 x OK Completed
 x list  inbox.xyzz*
 * LIST (\HasNoChildren) . inbox.xyzzy 
 x OK Completed

To be honest, I don't know for sure. I think it was a version of
Outlook, but when it was done is unknown, so it's impossible to tell.

Ian
-- 
Ian Macdonald   | boss forgot system password 
System Administrator| 
Google, Inc.| 
[EMAIL PROTECTED]  | 
+1 650-623-4265 |