|0||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.|
|1||Similar to 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)., but the unique folder will not be deleted on|
|2||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.|
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).
|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.|