From: Robert L. T. <ro...@es...> - 2003-03-14 15:41:41
|
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 <su...@ne...> 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 >> >> |