C# Class anmar.SharpMimeTools.SharpMimeTools

Show file Open project: jeske/StepsDB-alpha

Public Methods

Method Description
QuotedPrintable2Unicode ( System charset, System orig ) : System.String

Decode rfc 2047 definition of quoted-printable

QuotedPrintable2Unicode ( System enc, System &orig ) : void

Decode rfc 2047 definition of quoted-printable

Rfc2392Url ( System input ) : System.String

Encodes a Message-ID or Content-ID following RFC 2392 rules.

UuDecode ( System input ) : System.Byte[]

Decodes the provided uuencoded string.

The input string must contain the begin and end delimiters.

UuDecodeLine ( System s, System stream ) : bool

Decodes the provided uuencoded line.

parseCharSet ( System charset ) : System.Text.Encoding

Parses a System.Text.Encoding from a charset name

parseDate ( System date ) : System.DateTime

Parse a rfc 2822 date and time specification. rfc 2822 section 3.3

parseFrom ( System from, int part ) : System.String

Parse a rfc 2822 name-address specification. rfc 2822 section 3.4

parseFrom ( System from ) : System.Collections.IEnumerable

Parse a rfc 2822 address specification. rfc 2822 section 3.4

parseHeaderFieldBody ( System field, System fieldbody ) : System.Collections.Specialized.StringDictionary

Parse a rfc 2822 header field with parameters

parserfc2047Header ( System header ) : System.String

Parse and decode rfc 2047 header body

rfc2047decode ( System word ) : System.String

rfc 2047 header body decoding

uncommentString ( System fieldValue ) : System.String

Remove rfc 2822 comments

Private Methods

Method Description
GetFileName ( System name ) : System.String
ParseEnum ( System t, System s, System defaultvalue ) : Enum

Method Details

QuotedPrintable2Unicode() public static method

Decode rfc 2047 definition of quoted-printable
public static QuotedPrintable2Unicode ( System charset, System orig ) : System.String
charset System charset to use when decoding
orig System string to decode
return System.String

QuotedPrintable2Unicode() public static method

Decode rfc 2047 definition of quoted-printable
public static QuotedPrintable2Unicode ( System enc, System &orig ) : void
enc System to use
orig System string to decode
return void

Rfc2392Url() public static method

Encodes a Message-ID or Content-ID following RFC 2392 rules.
public static Rfc2392Url ( System input ) : System.String
input System with the Message-ID or Content-ID.
return System.String

UuDecode() public static method

Decodes the provided uuencoded string.
The input string must contain the begin and end delimiters.
public static UuDecode ( System input ) : System.Byte[]
input System with the uuendoced content.
return System.Byte[]

UuDecodeLine() public static method

Decodes the provided uuencoded line.
public static UuDecodeLine ( System s, System stream ) : bool
s System with the uuendoced line.
stream System where decoded should be written.
return bool

parseCharSet() public static method

Parses a System.Text.Encoding from a charset name
public static parseCharSet ( System charset ) : System.Text.Encoding
charset System charset to parse
return System.Text.Encoding

parseDate() public static method

Parse a rfc 2822 date and time specification. rfc 2822 section 3.3
public static parseDate ( System date ) : System.DateTime
date System rfc 2822 date-time
return System.DateTime

parseFrom() public static method

Parse a rfc 2822 name-address specification. rfc 2822 section 3.4
public static parseFrom ( System from, int part ) : System.String
from System address
part int 1 is display-name; 2 is addr-spec
return System.String

parseFrom() public static method

Parse a rfc 2822 address specification. rfc 2822 section 3.4
public static parseFrom ( System from ) : System.Collections.IEnumerable
from System field body to parse
return System.Collections.IEnumerable

parseHeaderFieldBody() public static method

Parse a rfc 2822 header field with parameters
public static parseHeaderFieldBody ( System field, System fieldbody ) : System.Collections.Specialized.StringDictionary
field System field name
fieldbody System field body to parse
return System.Collections.Specialized.StringDictionary

parserfc2047Header() public static method

Parse and decode rfc 2047 header body
public static parserfc2047Header ( System header ) : System.String
header System header body to parse
return System.String

rfc2047decode() public static method

rfc 2047 header body decoding
public static rfc2047decode ( System word ) : System.String
word System string to decode
return System.String

uncommentString() public static method

Remove rfc 2822 comments
public static uncommentString ( System fieldValue ) : System.String
fieldValue System string to uncomment
return System.String