Platforms to show: All Mac Windows Linux Cross-Platform

Back to MimeHeaderMBS class.

MimeHeaderMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method EmailParser MBS CURL Plugin 15.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The private constructor.

MimeHeaderMBS.FieldByName(name as string) as MimeFieldMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method EmailParser MBS CURL Plugin 15.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Finds a field by name.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("test.eml")
dim m as new MimeEmailMBS(f)

dim h as MimeHeaderMBS = m.Header
MsgBox h.FieldByName("Date").Value

e.g. "Sat, 5 Sep 2015 23:52:13 +0200" for the date field.

MimeHeaderMBS.Fields as MimeFieldMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method EmailParser MBS CURL Plugin 15.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The array of fields in this header.

See also:

MimeHeaderMBS.Fields(index as Integer) as MimeFieldMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method EmailParser MBS CURL Plugin 15.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries field by index.

Index is zero based.

See also:

MimeHeaderMBS.hasField(name as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method EmailParser MBS CURL Plugin 15.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether a certain field exists.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("test.eml")
dim m as new MimeEmailMBS(f)

dim h as MimeHeaderMBS = m.Header
if h.hasField("Date") then
MsgBox "Has date: "+h.FieldByName("Date").Value
end if

The items on this page are in the following plugins: MBS CURL Plugin.


The biggest plugin in space...