Subject: Deleting folders: Pine 4.10 vs. Cyrus IMAP 1.5.24

From: Dave Lutz <[email-masked]>
Date: Thu, 29 Jul 1999 16:07:38 -0400 (EDT)

Greetings,

We're in the process of rolling out a new IMAP mail system based on Cyrus
(currently version 1.5.24).   Part of that process involves migration from
Pine 3.96 to Pine 4.10.  During testing of Pine 4.10 against the Cyrus
server, we notice what appears to be a problem with the way Pine deletes
directories on an IMAP server where the delimiter is a '.' instead of a
'/' character.   

Problem specifics:  The folder-collections option in Pine is defined to
have the following collection:   {servername}[]
Alternatively, the following collection defintions also work, and exhibit
the same problem:  {servername}user.dlutz.[]  or  {servername}INBOX.[]

With any of the above collection definitions, when I go to that collection
with Pine 4.10, I can see all the subsidiary folders, I can create new
folders, and I can rename existing ones without problem.  However, when I
try to delete a folder, the deletion fails with a "no such mailbox" error.
Running Pine with -d 9 shows what it is attempting:

  deleting folder "GRAB2" () in context "{mail-d}user.dlutz.%s"
  same_stream: {mail-d}user.dlutz.GRAB2 ==
  {mail-1.oit.umass.edu:143/imap/user=dlutz}INBOX
  IMAP DEBUG 10:45:06 7/29: 0000000a Delete user.dlutz.GRAB2.
  IMAP DEBUG 10:45:06 7/29: 0000000a NO Mailbox does not exist
  IMAP 10:45:06 7/29 mm_log ERROR: Mailbox does not exist
  q_status_message(Mailbox does not exist)
  q_status_message(Delete of "GRAB2" Failed!)

In this particular case, I had my collection defined as:
{server}user.dlutz.[]   however, the failure symptoms are the same
no matter if the collection is defined in any of the 3 ways listed above.
There is definitely a "GRAB2" folder present, and I can delete it
without problem using cyradm manually.

It looks like Pine is adding an extra delimiter character ('.') to the end
of the mailbox name, which causes Cyrus to fail the request.  

Has anyone seen this?  Is it a Pine bug, or am I doing something wrong?  
Thanks,

-David Lutz
 Network Analyst                      University of Massachusetts
 OIT/Network Systems and Services     Amherst, MA  USA 01003-4640
 [email-masked]                  voice: 413-545-9633  fax: 413-545-3203 

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------