[an error occurred while processing this directive]

Tip: Deleting Folders in Netscape IMAP Client
NetMail Cool Solutions Article
by Paul Banks
Reader Rating    from ratings rate this article
View a Printer Friendly Version of this Page Send this page to a friend

Posted: 4 Aug 2003

Problem: In the Netscape IMAP client when the "move deleted items to Trash" is selected, then the user can't delete folders as the "trash folder" refuses to store subfolders.

The reason for this is that the NetMail server tries to move the deleted folder to the USER/Trash/foldername but the User/Trash/ path doesn't normally exist - even if the Trash IMAP folder exists as Trash.box - and so the move fails.

Solution: This can be fixed by the user simply creating a subfolder in trash (which they can subsequently delete). Doing this creates the USER/Trash/ path on the server and after doing this, the user will be able to delete IMAP folders in Netscape.

I've also written a simple csh shell script for un*x machines to automatically create the Trash folder for all users in a NetMail system. Just copy it to /usr/nims/users, change to that directory and run it with ./scriptname to automatically create the trash folders for all users.

Example: Shell script to administratively create trash folders - see solution for instructions.

---- BEGIN SCRIPT ----
#!/bin/tcsh

foreach n (`ls`)
if (! -f $n) then

if (! -d $n/Trash) then
echo Creating new Trash Directory for $n
mkdir $n/Trash
endif

if (! -e $n/Trash.box) then
echo Creating trash folder for $n
touch $n/Trash.box
endif

endif
end
---- END SCRIPT ----

For more tips see:

submit a tip

Here's a chance to share your experiences using NetMail. Just send us a tip about using (or installing, deploying, troubleshooting, etc.) NetMail, and if it looks like something we can use, we'll send you a Novell t-shirt, post your tip, and make you famous beyond your tamest dreams. Submit your tip here: http://www.novell.com/coolsolutions/netmail/features/tips/t_submit_a_tip_nm.html