C# Class Stratosphere.Imap.ImapClient

Inheritance: IDisposable
Afficher le fichier Open project: petrohi/Stratosphere.Imap

Méthodes publiques

Свойство Type Description
DefaultReadTimeout System.TimeSpan
ParseFailures EventHandler

Méthodes publiques

Méthode Description
Dispose ( ) : void
FetchMessages ( long beginUid, long endUid, ImapFetchOption option ) : IEnumerable
FetchMessages ( long beginUid, long endUid, ImapFetchOption option, IEnumerable extensionParameterNames ) : IEnumerable
FetchSection ( long uid, ImapBodyPart part ) : object
FetchSection ( long uid, ImapBodyPart part, bool peek ) : object
FetchUids ( long beginNumber, long endNumber ) : IEnumerable
FetchUids ( long beginNumber, long endNumber, bool isUidSet ) : IEnumerable
ImapClient ( string hostName, int portNumber, bool enableSsl, NetworkCredential credentials ) : System
ListFolders ( string reference, string wildcard ) : IEnumerable
ListFoldersWithFlags ( string reference, string wildcard, bool useXList ) : IEnumerable>>.IEnumerable
SelectFolder ( string folderName ) : ImapFolder
SelectFolder ( string folderName, bool isReadonly ) : ImapFolder
SendReceive ( string command ) : SendReceiveResult
SetDeleted ( long beginUid, long endUid ) : void
TryLogin ( ) : bool
TrySaslLogin ( string mechanism, string data ) : bool

Private Methods

Méthode Description
CombineSplitLines ( string commandId, IEnumerable lines ) : IEnumerable
FormatSequence ( long begin, long end ) : string
FormatSequence ( long begin, long end, bool isUidSet ) : string
InitializeConnection ( ) : bool
IsLineBalanced ( bool isQuoted, int nonQuotedOpenBraceCount, int nonQuotedCloseBraceCount ) : bool
IsLineNonProtocolPrefix ( string line, string commandId ) : bool
IsLiteralSignalLine ( string line ) : bool
IsLiteralSignalLine ( string line, int &begin ) : bool
OnParseFailures ( IEnumerable details ) : void
ReadResponse ( StreamReader reader, string commandId ) : SendReceiveResult
ReadResponse ( StreamReader reader, string commandId, System.TimeSpan readTimeout ) : SendReceiveResult
SafeEnumerateLines ( IEnumerable lines, bool>.Func iterationOperation ) : void

Enumerates the lines, and if there is a handler specified for ParseFailures event, will just accumulate failure details, skipping to next line.. then once all lines are processed, fires the ParseFailures event with the details... if no handler is registered, then any exception will be thrown as-is, enumeration will stop, and no event is fired.

StoreFlag ( long beginUid, long endUid, string flag, FlagOperation operation ) : void
UpdateLineCounters ( string line, bool &isQuoted, int &accumulatedOpenBraceCount, int &accumulatedCloseBraceCount ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

FetchMessages() public méthode

public FetchMessages ( long beginUid, long endUid, ImapFetchOption option ) : IEnumerable
beginUid long
endUid long
option ImapFetchOption
Résultat IEnumerable

FetchMessages() public méthode

public FetchMessages ( long beginUid, long endUid, ImapFetchOption option, IEnumerable extensionParameterNames ) : IEnumerable
beginUid long
endUid long
option ImapFetchOption
extensionParameterNames IEnumerable
Résultat IEnumerable

FetchSection() public méthode

public FetchSection ( long uid, ImapBodyPart part ) : object
uid long
part ImapBodyPart
Résultat object

FetchSection() public méthode

public FetchSection ( long uid, ImapBodyPart part, bool peek ) : object
uid long
part ImapBodyPart
peek bool
Résultat object

FetchUids() public méthode

public FetchUids ( long beginNumber, long endNumber ) : IEnumerable
beginNumber long
endNumber long
Résultat IEnumerable

FetchUids() public méthode

public FetchUids ( long beginNumber, long endNumber, bool isUidSet ) : IEnumerable
beginNumber long
endNumber long
isUidSet bool
Résultat IEnumerable

ImapClient() public méthode

public ImapClient ( string hostName, int portNumber, bool enableSsl, NetworkCredential credentials ) : System
hostName string
portNumber int
enableSsl bool
credentials System.Net.NetworkCredential
Résultat System

ListFolders() public méthode

public ListFolders ( string reference, string wildcard ) : IEnumerable
reference string
wildcard string
Résultat IEnumerable

ListFoldersWithFlags() public méthode

public ListFoldersWithFlags ( string reference, string wildcard, bool useXList ) : IEnumerable>>.IEnumerable
reference string
wildcard string
useXList bool
Résultat IEnumerable>>.IEnumerable

SelectFolder() public méthode

public SelectFolder ( string folderName ) : ImapFolder
folderName string
Résultat ImapFolder

SelectFolder() public méthode

public SelectFolder ( string folderName, bool isReadonly ) : ImapFolder
folderName string
isReadonly bool
Résultat ImapFolder

SendReceive() public méthode

public SendReceive ( string command ) : SendReceiveResult
command string
Résultat SendReceiveResult

SetDeleted() public méthode

public SetDeleted ( long beginUid, long endUid ) : void
beginUid long
endUid long
Résultat void

TryLogin() public méthode

public TryLogin ( ) : bool
Résultat bool

TrySaslLogin() public méthode

public TrySaslLogin ( string mechanism, string data ) : bool
mechanism string
data string
Résultat bool

Property Details

DefaultReadTimeout public_oe static_oe property

public static TimeSpan,System DefaultReadTimeout
Résultat System.TimeSpan

ParseFailures public_oe property

public EventHandler ParseFailures
Résultat EventHandler