Hi, Robert,

Great to hear there is a fix, I am using

SM  1.2.12.
RedHat uw-imap version imap-2001a-15
RedHat php version 4.2.2-8.0.7

Many thanks for your help.


Robert L. Tom wrote:


I had similar problems where it would truncate
the first character of the folder that I create.
Also I had a problem when deleting a folder where
it would delete it then unsubscribe to it.
But I was able to fix them with the modification I sent you.
What versiohn of SM are you using?
what version of PHP and what kind of IMAP are you using?


Robert





Thanks Robert! It didn't solve my SM problems though. Still the
same error messages. For example, I just created a folder in SM,
it shows up in my ~/.mailboxlist as mail/Samba, and a file
~/mail/Samba is created with the "DON'T DELETE THIS MESSAGE"
email. So subscribing works when I create a new folder, but
unsubscribing gives me this error message

ERROR : Could not complete request.
Query: UNSUBSCRIBE "mail/Sambamailbox[]=mail/Samba"
Reason Given: UNSUBSCRIBE failed: Not subscribed to mailbox
mail/Sambamailbox[]=mail/Samba

and when I try to subscribe to a not already subscribed folder
(present in the ~/mail directory and listed in the list of folders  I
can subscribe to in SM) I get this error message

ERROR : Could not complete request.
Query: SUBSCRIBE "mail/Foobarmailbox[]=mail/Foobar"
Reason Given: SUBSCRIBE failed: Can't subscribe to mailbox
mail/Foobarmailbox[]=mail/Foobar: no such mailbox

I now created a folder within my mail directory with the name
Foobarmailbox[]=mail and copied my Foobar file/folder to that
directory, subscribing now worked!!! But this is not the
solution. Unsubscribing to that folder gave me this error ;-)

ERROR : Could not complete request.
Query: UNSUBSCRIBE
"mail/Foobarmailbox[]=mail/Foobarmailbox[]=mail/Foobarmailbox[]=mail/Foobar"
Reason Given: UNSUBSCRIBE failed: Not subscribed to mailbox
mail/Foobarmailbox[]=mail/Foobarmailbox[]=mail/Foobarmailbox[]=mail/Foobar

Suchen <[EMAIL PROTECTED]> seems have the same problem, at least
I'm not alone ;-)


On Thu, 2003-03-13 at 22:04, Robert L. Tom wrote:


I posted the fix on this problem last time.
Let me see if I can find it.



Just changed from another webmail package to Squirrelmail,
everything seems to work just fine except subscribing,
unsubscribing, renaming, and deleting of folders. Creating folders


works fine. Handling folders gives errors like



ERROR : Could not complete request.
Query: SUBSCRIBE "mail/Foomailbox[]=mail/Foo"
Reason Given: SUBSCRIBE failed: Can't subscribe to mailbox
mail/Foomailbox[]=mail/Foo: no such mailbox


Here is the fix.



2/28/2003
Author: Robert
Fix for squirrelmail 1.2.11 IMAP folder deletion problems
and folder truncation names during folder deletion problem.
using redhat 8.0
or
caldera 3.1.1.
using dbmail 1.1
squirrelmail 1.2.11

########################################################33

../functions/tree.php   line 107
changed from

$position = strrpos($topFolderName, $delimiter) + 1;

to

$position = strrpos($topFolderName, $delimiter) + 0;//or remove 0 all


the
way


##########################################################
fix for unsubscribe error during deletion of folders is

../functions/imap_mail_box.php line 183

sqimap_unsubscribe ($imap_stream, $mailbox);

to

the line 183 being deleted.

reason: deletes then unsubscribe, it shouldn't unsubscribe after the


folder is already deleted!


#############################################################
fix for rename unsubscribe problems

delete line 213 of ../functions/imap_mail_box.php

reason: renames a folder then unsubscribe using old name, you can't


because old name is gone.


done.


Let me know if this fixes your problem.

Robert









-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users








-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to