Disabling SquirrelMail folders

We are not an IMAP shop, but we use SquirrelMail to provide webmail access to our users. Therefore we need a way to restrict folder access via SquirrelMail. I came up with this trick some day in 2005:

  1. Edit <SquirrelMail installation directory>/functions/page_header.php and comment out the line:
    displayInternalLink ('src/folders.php', _("Folders"));

    This removes “Folders” from the menu, but still, they are directly available.

  2. Assuming bash as the root shell:
    # cd <SquirrelMail installation directory>/src
    # for i in folders*.php
         cp /dev/null $i

and you are done.

[original page]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s