On Sun, 14 Aug 2005 12:53:45 +0100, PajaP
<[EMAIL PROTECTED]> wrote:

>Hi
>
>I am trying to prevent users from being able to unsubscribe, delete or
>rename their Spam folder.
>I am using the junkfolder plugin to create the folders as special.
>I have added the following lines to folders.php
>
>------------------
>case $junk_folder:
>    ++$count_special_folders;
>    $skip_folders[] = $junk_folder;
>    break;
>------------------
>
>The above was added to the section for "folders the user shouldn't be
>able to rename/delete".
>
>
>------------------
>($boxes[$i]["unformatted"] != $junk_folder) &&
>------------------
>
>The above was added to the:
>/** UNSUBSCRIBE FOLDERS **/ section.
>
>This is all not working so I am guessing this is also controlled
>elsewhere, or maybe because $junk_folder is only declared in a plugin.
>

Hmmm, by adding the following line to config.php:
$junk_folder  = 'Spam';
I am now unable to unsubscribe to 'Spam'.
I am unable to delete or rename 'Spam'.

I am able to delete or rename 'Trash'.
Now as Trash is the last folder in the list of special folders I am
guessing that there is some code which specifies to only have the
first 4 folders as special, preventing them from being deleted or
renamed. I have scanned the code and cannot see where this is done.

-- 
PajaP



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
--
squirrelmail-users mailing list
Posting Guidelines: 
http://squirrelmail.org/wiki/wiki.php?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