wodImapServer ActiveX Component - DeleteFolder Event
    
 

Description

Fires when user wants to delete subfolder.


Syntax

Private Sub object_DeleteFolder(User, ParentFolder, Folder, Action)



The DeleteFolder Event syntax has these parts:

Part Description
object A wodImapServer object.
User An ImapUser object. Reference to user who wants to delete folder.
ParentFolder An ImapFolder object. Reference to parent folder where folder that will be deleted currently exists.
Folder An ImapFolder object. Reference to folder that should be deleted.
Action An ImapActions enumeration, as described in settings. Return value you should fill with either Allow or Deny value, depending if you will allow user to delete the folder or not.

Settings

The settings for Action are:

Constant Value Description
 Deny 0 Deny execution of the action.
 Allow 1 Allow to execute action.

Remarks
When user decides to delete certain folder, DeleteFolder event is fired for you to decide if you will allow such action or not. If you don't want folder to be deleted, you should set Action = Deny, and wodImapServer will return error message to the client.

If you want to allow this action, then you should delete all subfolders and all messages from the folder, and set Action = Allow.