ImapBodyStructureSafeFilename Property
Gets the filename of the MIME part, safe for saving to the filesystem under that name.

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public string SafeFilename { get; }

Property Value

Type: String
The string containing the filename of the MIME part, without symbols not valid on the filesystem, or an auto-generated name if the MIME part has no filename.
Remarks
If Filename is set, it's used. Otherwise, name parameter of Content-Type is tried. The resulting name is made safe for the filesystem by replacing invalid characters with "_". If both Filename and name are empty, the filename is auto-generated based on the ContentType (e.g. for image/gif MailBee generates a filename like some-unique-string.gif).
See Also