C# Класс anmar.SharpMimeTools.SharpMimeTools

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetFileName ( System name ) : System.String
ParseEnum ( System t, System s, System defaultvalue ) : Enum

Описание методов

QuotedPrintable2Unicode() публичный статический Метод

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
Результат System.String

QuotedPrintable2Unicode() публичный статический Метод

Decode rfc 2047 definition of quoted-printable
public static QuotedPrintable2Unicode ( System enc, System &orig ) : void
enc System to use
orig System string to decode
Результат void

Rfc2392Url() публичный статический Метод

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.
Результат System.String

UuDecode() публичный статический Метод

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.
Результат System.Byte[]

UuDecodeLine() публичный статический Метод

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.
Результат bool

parseCharSet() публичный статический Метод

Parses a System.Text.Encoding from a charset name
public static parseCharSet ( System charset ) : System.Text.Encoding
charset System charset to parse
Результат System.Text.Encoding

parseDate() публичный статический Метод

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
Результат System.DateTime

parseFrom() публичный статический Метод

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
Результат System.String

parseFrom() публичный статический Метод

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
Результат System.Collections.IEnumerable

parseHeaderFieldBody() публичный статический Метод

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
Результат System.Collections.Specialized.StringDictionary

parserfc2047Header() публичный статический Метод

Parse and decode rfc 2047 header body
public static parserfc2047Header ( System header ) : System.String
header System header body to parse
Результат System.String

rfc2047decode() публичный статический Метод

rfc 2047 header body decoding
public static rfc2047decode ( System word ) : System.String
word System string to decode
Результат System.String

uncommentString() публичный статический Метод

Remove rfc 2822 comments
public static uncommentString ( System fieldValue ) : System.String
fieldValue System string to uncomment
Результат System.String