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:
- 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.
- Assuming bash as the root shell:
# cd <SquirrelMail installation directory>/src # for i in folders*.php do cp /dev/null $i done
and you are done.