MailBee.NET Objects 4.0

MessageFolderBehavior Enumeration

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

public enum MessageFolderBehavior

Remarks

When using GetHtmlAndSaveRelatedFiles 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 + "\" + MD5Digest(Message-ID).

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

Members

Member NameDescription
CreateAndDelete On GetHtmlAndSaveRelatedFiles method call, create temporary folder in WorkingFolder and place the message files there. Once the MailMessage object is deleted, this folder will be automatically removed with all its contents.
CreateOnly 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).
DoNotCreate 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.

Requirements

Namespace: MailBee.Mime

Assembly: MailBee.NET (in MailBee.NET.dll)

See Also

MailBee.Mime Namespace