On Thu, December 29, 2005 5:12 pm, [EMAIL PROTECTED] wrote:
> Hi everyone, I am not sure if this is possible but I would like to porovide
> users with the following folder structure
>
> Inbox
> Junk E-mail (I create this with the autosubscribe plugin - thanks to Tomas )
> Drafts
> Sent Messages
> Deleted Items

My quick and dirty hack...

>From src/left_main.php, using the Sent mailbox as an example:

Around line 85, search for occurances of the line:

$line .= str_replace(array('
','<','>'),array('&nbsp;','&lt;','&gt;'),$mailbox);

And replace it with whatever you want it to display as for the particular
folder (this doesn't appear to change the folder itself, just how it's
displayed to the user in the left-frame listing), for example:

$line .= 'Sent&nbsp;Messages';

>
> Then skip a few spaces and show the folders that a user created themselves.
>

Assuming the trash folder is the last default folder listed (then begins your
users' folders), around line 137, same file, insert the $line .= '<br>'; code
as shown below:

/* If it's the trash folder, show a purge link when needed */
if (($move_to_trash) && ($real_box == $trash_folder)) {
    if (! isset($numMessages)) {
        ...
    }
    if (($numMessages > 0) or ($box_array['parent'] == 1)) {
        ...
    }
    $line .= '<br>';
} else {
    ...
}

Of course, ymmv :)

Geoff



-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
--
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