C# Class LumiSoft.Net.IMAP.Server.FetchHelper

FETCH command helper methods.
Show file Open project: jeske/StepsDB-alpha

Public Methods

Method Description
ConstructBodyStructure ( LumiSoft parser, bool bodystructure ) : string

Constructs FETCH BODY and BODYSTRUCTURE response.

ConstructEnvelope ( LumiSoft parser ) : string

Construct FETCH ENVELOPE response.

ParseHeaderFields ( string fieldsStr, byte data ) : string

Returns requested header fields lines.

ParseHeaderFieldsNot ( string fieldsStr, byte data ) : string

Returns header fields lines except requested.

ParseMimeEntry ( LumiSoft parser, string mimeEntryNo ) : byte[]

Returns requested mime entry data.

Private Methods

Method Description
ConstructMultiPart ( MimeEntity ent, bool bodystructure ) : string
ConstructParts ( MimeEntityCollection entries, bool bodystructure ) : string
ConstructSinglePart ( MimeEntity ent, bool bodystructure ) : string
Escape ( string text ) : string

Method Details

ConstructBodyStructure() public static method

Constructs FETCH BODY and BODYSTRUCTURE response.
public static ConstructBodyStructure ( LumiSoft parser, bool bodystructure ) : string
parser LumiSoft
bodystructure bool
return string

ConstructEnvelope() public static method

Construct FETCH ENVELOPE response.
public static ConstructEnvelope ( LumiSoft parser ) : string
parser LumiSoft
return string

ParseHeaderFields() public static method

Returns requested header fields lines.
public static ParseHeaderFields ( string fieldsStr, byte data ) : string
fieldsStr string Header fields to get.
data byte Message data.
return string

ParseHeaderFieldsNot() public static method

Returns header fields lines except requested.
public static ParseHeaderFieldsNot ( string fieldsStr, byte data ) : string
fieldsStr string Header fields to skip.
data byte Message data.
return string

ParseMimeEntry() public static method

Returns requested mime entry data.
public static ParseMimeEntry ( LumiSoft parser, string mimeEntryNo ) : byte[]
parser LumiSoft
mimeEntryNo string
return byte[]