MessageFolderBehavior Enumeration
Defines the available modes of maintaining the unique message folder associated with the mail message.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public enum MessageFolderBehavior
Members
  Member nameValueDescription
CreateAndDelete0 On GetHtmlAndSaveRelatedFiles(String, VirtualMappingType, MessageFolderBehavior) method call, create temporary folder in WorkingFolder and place the message files there. Once the MailMessage object is deleted or Dispose is called, this folder will be automatically removed with all its contents.
CreateOnly1 Similar to CreateAndDelete, but the unique folder will not be deleted on MailMessage object destruction. This is useful in web applications where MailMessage object exists only for the time of generating response to the client. The developer should remember the folder name (using GetMessageFolder method) and delete it later (when the message is no longer needed).
DoNotCreate2 Do not create a unique folder and place all the files directly in WorkingFolder. No files or folders will be deleted on MailMessage object destruction.
Remarks

When using GetHtmlAndSaveRelatedFiles(String, VirtualMappingType, MessageFolderBehavior) method to save message files into temporary location, the developer has option to tell MailBee to create a unique folder in WorkingFolder and place all message files there, not in WorkingFolder itself. This is useful when multiple messages are processed simultaneously (such as in a web application which is accessed by multiple users).

If the option to create a unique folder is selected, the name of this folder is generated as:
WorkingFolder + "\" + SHA1Digest(Message-ID).

Note Note
MailBee neither saves anything to disk nor creates any folders unless the developer explicitly requests this (for instance, calls GetHtmlAndSaveRelatedFiles(String, VirtualMappingType, MessageFolderBehavior) method). Anyway, messages get parsed directly in memory.
See Also