Success at last...however I am still forced into using "home/mklein/mail" rather than "mail/" in UI settings otherwise I don't accurately get list of folders I am subscribed too.

I have an /etc/c-client.cf file with following contents:

[EMAIL PROTECTED] mail]# cat /etc/c-client.cf
I accept the risk
set mail-subdirectory mail

And tweaking file below you mention (right_main.php) for "compensate for uw vulnerability" yields success on mailbox selects of folders other than always showing INBOX. I now see appropriate folder contents.

Contents of .mailboxlist in my home directory is:

[EMAIL PROTECTED] squirrelmail]# cat /home/mklein/.mailboxlist
/home/mklein/mail/Drafts
/home/mklein/mail/Licenses
/home/mklein/mail/MailingLists/IMAP
/home/mklein/mail/Sent
/home/mklein/mail/Trash
/home/mklein/mail/alerts
/home/mklein/mail/cron
/home/mklein/mail/mbox
[EMAIL PROTECTED] squirrelmail]#

Other MUAs have had absolutely ZERO problems with above imap settings (tbird, outlook). I had to make this change due to PocketPC imap clients choking on large# of files in my home directory. Without creating "mail" subdir for holding imap subscribed folders...my PPC imap clients would all fail when scanning like 10K+ files for subscribing/viewing.

default_folder_prefix was already set to 'mail/' in config.php.

TEST_7
Request:
A005 LSUB "mail/" "*%"
Response:
LSUB completed

TEST_8
Request:
A006 LIST "mail/" "*"
Response:
LIST completed

So any changes to folder prefs (like folder path) via UI dare global to all users and not private? Ok, this makes sense. However "mail/" isn't working with c-client.cf above and obviously "/home/mklein/mail" is not appropriate if this setting is applied to all users.

I am finally seeing reason behind "I accept the risk" comment in c-client.cf....


mike

Tomas Kuliavas wrote:
1. remove folder_prefix option from user's SquirrelMail preferences

2. set default folder prefix to 'mail/' without quotes in SquirrelMail
configuration utility.

3. please explain why relative path does not work. Run info plugin tests with

LSUB "mail/" "*%"
LIST "mail/" "*"

If relative path is used, server should read files from user's home
directory.

4. If you use full path to mailbox, SquirrelMail refuses to load mailbox.
It is security feature specific to default insecure UW mailbox layout.

from src/right_main.php
----
/* compensate for the UW vulnerability. */
if ($imap_server_type == 'uw' && (strstr($mailbox, '../') ||
                                  substr($mailbox, 0, 1) == '/')) {
   $mailbox = 'INBOX';
}
----
If mailbox starts with / or contains ../, it is set to INBOX.

5. SquirrelMail is multiuser email interface. Don't set SquirrelMail
default folder prefix option to single user mailbox path.

  
I tested differences in older RH9 squirrelmail rpm against conf file
from new verions I got from mirror...and they don't change problem of
selects of other folders always showing main inbox....

As mentioned, SM seems to have no problem determining my folder
structure and creating/removing/renaming said folders (of any kind). It's
just selects of different folders in UI that seem to yield broken results.


I ran this useful config module you mentioned and when I remove wilcard
parameters in any form from list command I get no results. When I pass in
wildcard for list test I get :

TEST_7
Request:
A003 LSUB "/home/mklein/mail/" "*%"
Response:
* LSUB () "/" /home/mklein/mail/Drafts
* LSUB () "/" /home/mklein/mail/Licenses
* LSUB () "/" /home/mklein/mail/MailingLists/IMAP
* LSUB () "/" /home/mklein/mail/Sent
* LSUB () "/" /home/mklein/mail/Trash
* LSUB () "/" /home/mklein/mail/alerts
* LSUB () "/" /home/mklein/mail/cron
* LSUB () "/" /home/mklein/mail/mbox
LSUB completed


TEST_8
Request:
A004 LIST "/home/mklein/mail/*" "*"
Response:
* LIST (\NoSelect) "/" /home/mklein/mail/
* LIST (\NoSelect) "/" /home/mklein/mail/MailingLists
* LIST (\NoInferiors \Marked) "/" /home/mklein/mail/MailingLists/IMAP
* LIST (\NoInferiors \Marked) "/" /home/mklein/mail/Drafts
* LIST (\NoInferiors \UnMarked) "/" /home/mklein/mail/Sent
* LIST (\NoInferiors \UnMarked) "/" /home/mklein/mail/Junk
* LIST (\NoInferiors \UnMarked) "/" /home/mklein/mail/Trash
* LIST (\NoInferiors \Marked) "/" "/home/mklein/mail/Sent Items"
* LIST (\NoInferiors \UnMarked) "/" /home/mklein/mail/mbox
* LIST (\NoInferiors \UnMarked) "/" /home/mklein/mail/Licenses
* LIST (\NoInferiors \UnMarked) "/" /home/mklein/mail/alerts
* LIST (\NoInferiors \Marked) "/" /home/mklein/mail/cron
LIST completed


>From a mailbox which have problems showing via UI when I issue following
imap command it does correctly report #items in mailbox.

TEST_9
Request:
A008 STATUS cron (MESSAGES RECENT)
Response:
* STATUS cron (MESSAGES 831 RECENT 0)
STATUS completed
mike


Tomas Kuliavas wrote:

    
enable info plugin

go to http://your-server/squirrelmail/plugins/info/options.php

show results of test 7 and 8. Remove wildcard symbol from LIST test.

if you use some Fedora squirrelmail RPM, make sure that
config/config_local.php file does not have any configuration overrides.



      
I have tried using squirrelmail config.php settings from earlier
redhat install...still when I select any folder it always shows
content of inbox.


Next step is ethereal I guess...maybe I can turn up imap server
logs/debugging.


mike


        
RedHat uses custom uw setup. SquirrelMail uw preset is designed for
 standard setup.

Try setting folder prefix to empty value in SquirrelMail
configuration. See RedHat9 SquirrelMail rpm config.php





          
Having same problem with 1.4.6-rc1 of SM.






Mike Klein wrote:





            
SquirrelMail 1.4.5
PHP 4.3.2, register_globals is off
RH 9 (imap 2001a Release 18)
c-client.cf contains (set mail-subdirectory mail) .mailrc
contains (/home/mklein/mail)





mike

Tomas Kuliavas wrote:





              
Used SquirrelMail version?




Used UW IMAP version, uw imap toolkit compilation options,
all changes to default toolkit source, c-client.cf and .mailrc
 configuration options.

Used PHP version? PHP register_globals setting?




Please provide information about your setup.







                
As I mentioned...setting "mail/" in global prefs doesn't
work, but setting "/home/mklein/mail/" in gui does....at
least so far as showing subscribed folder hierarchy
correctly and I can even create subfolders (creates new
.mailboxlist entry correctly) and
move messages to these subfolders.

But when I click on this new subfolder where I moved a
message (or
any subfolder) I get no messages shown. Only Inbox is ever
shown with contents.

Squirrelmail bugs? I could try an older version I
guess...or newer RC.





mike

Mike Klein wrote:







                  
I have no problems with Outlook, Pocket Outlook, or
Thunderbird
accessing my UofW imap server...just squirrelmail.

I have configured imap to use /home/<username>/mail as
store for subscribed folders. My .mailboxlist file in home
directory lists the following:



/home/mklein/mail/Drafts
/home/mklein/mail/Licenses
/home/mklein/mail/MailingLists/IMAP
/home/mklein/mail/Sent
/home/mklein/mail/Trash
/home/mklein/mail/alerts
/home/mklein/mail/cron
/home/mklein/mail/mbox





Yet I can find no setting which allows me to access any
folder except for my Inbox (/var/spool/mail/mklein).

I tried configuring squirrelmail for uofw imap settings
with "mail/" as
mail directory. Doesn't work. Tried changing setting in UI
for /home/mklein/mail...doesn't work. I get correct
folders on lefthand side...but selecting any of them
always shows my inbox.

What the heck might I be doing wrong?



                    
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
 --
squirrelmail-users mailing list Posting Guidelines:
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: [email protected]
List Archives:
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: [email protected]
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
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