MimeHeaderMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem