LEML  0.6
Public Member Functions | Public Attributes | Properties | List of all members
kenjiuno.LEML.EML Class Reference

RFC 822 EML decoder More...

Public Member Functions

string GetValue (string key)
 Search last header field value by name More...
 
override string ToString ()
 MIME type More...
 
 EML (Mail entity)
 Consturct from mail entity More...
 

Public Attributes

List< EMLmultiparts = new List<EML>()
 The decoded multipart entities More...
 

Properties

Mail entity [get, set]
 The parsed Mail entity More...
 
List< KeyValuePair< string, string > > allHeaders = new List<KeyValuePair<string, string>>() [get]
 All headers that allow same key names More...
 
SortedDictionary< string, string > dictHeaders = new SortedDictionary<string, string>(StringComparer.InvariantCultureIgnoreCase) [get]
 All headers of last occurence associated with its header field name More...
 
String fullBody [get, set]
 body includes multipart entities (latin1, LF) More...
 
String contents [get, set]
 Output (Main contents, latin1, LF) More...
 
String?? ContentType [get]
 Content-Type media type, otherwise empty More...
 
String?? ContentDisposition [get]
 Content-Disposition type, otherwise empty More...
 
String???? FileName [get]
 Content-Disposition.FileName, or Content-Type.Name, otherwise empty More...
 
String?? From [get]
 From header field body, otherwise empty. More...
 
String?? To [get]
 To header field body, otherwise empty. More...
 
String?? Subject [get]
 Subject header field body, otherwise empty. More...
 
String PerceivedType [get]
 The type part of ContentType, otherwise empty. More...
 
String?? Boundary [get]
 boundary in Content-Type, otherwise empty. More...
 
String?? CharacterSet [get]
 charset parameter value in Content-Type, otherwise empty. More...
 
String?? ContentTransferEncoding [get]
 Content-Transfer-Encoding header field body, otherwise empty More...
 
byte[] RawContents [get]
 Main contents in byte array More...
 
String MessageBody [get]
 Main contents text body in readable Unicode More...
 
DateTime? Date [get]
 Parsed Date header field body, otherwise null. More...
 

Detailed Description

RFC 822 EML decoder

Constructor & Destructor Documentation

◆ EML()

kenjiuno.LEML.EML.EML ( Mail  entity)

Consturct from mail entity

Parameters
entitymail entity

Member Function Documentation

◆ GetValue()

string kenjiuno.LEML.EML.GetValue ( string  key)

Search last header field value by name

Parameters
key
Returns
text if found, otherwise null

◆ ToString()

override string kenjiuno.LEML.EML.ToString ( )

MIME type

Returns
Content type

Member Data Documentation

◆ multiparts

List<EML> kenjiuno.LEML.EML.multiparts = new List<EML>()

The decoded multipart entities

Property Documentation

◆ allHeaders

List<KeyValuePair<string, string> > kenjiuno.LEML.EML.allHeaders = new List<KeyValuePair<string, string>>()
get

All headers that allow same key names

◆ Boundary

String?? kenjiuno.LEML.EML.Boundary
get

boundary in Content-Type, otherwise empty.

◆ CharacterSet

String?? kenjiuno.LEML.EML.CharacterSet
get

charset parameter value in Content-Type, otherwise empty.

◆ ContentDisposition

String?? kenjiuno.LEML.EML.ContentDisposition
get

Content-Disposition type, otherwise empty

◆ contents

String kenjiuno.LEML.EML.contents
getset

Output (Main contents, latin1, LF)

◆ ContentTransferEncoding

String?? kenjiuno.LEML.EML.ContentTransferEncoding
get

Content-Transfer-Encoding header field body, otherwise empty

  • empty
  • base64

◆ ContentType

String?? kenjiuno.LEML.EML.ContentType
get

Content-Type media type, otherwise empty

◆ Date

DateTime? kenjiuno.LEML.EML.Date
get

Parsed Date header field body, otherwise null.

◆ dictHeaders

SortedDictionary<string, string> kenjiuno.LEML.EML.dictHeaders = new SortedDictionary<string, string>(StringComparer.InvariantCultureIgnoreCase)
get

All headers of last occurence associated with its header field name

◆ entity

Mail kenjiuno.LEML.EML.entity
getset

The parsed Mail entity

◆ FileName

String???? kenjiuno.LEML.EML.FileName
get

Content-Disposition.FileName, or Content-Type.Name, otherwise empty

◆ From

String?? kenjiuno.LEML.EML.From
get

From header field body, otherwise empty.

◆ fullBody

String kenjiuno.LEML.EML.fullBody
getset

body includes multipart entities (latin1, LF)

◆ MessageBody

String kenjiuno.LEML.EML.MessageBody
get

Main contents text body in readable Unicode

◆ PerceivedType

String kenjiuno.LEML.EML.PerceivedType
get

The type part of ContentType, otherwise empty.

◆ RawContents

byte [] kenjiuno.LEML.EML.RawContents
get

Main contents in byte array

◆ Subject

String?? kenjiuno.LEML.EML.Subject
get

Subject header field body, otherwise empty.

◆ To

String?? kenjiuno.LEML.EML.To
get

To header field body, otherwise empty.


The documentation for this class was generated from the following file: