C# 클래스 Stratosphere.Imap.ImapClient

상속: IDisposable
파일 보기 프로젝트 열기: petrohi/Stratosphere.Imap

공개 프로퍼티들

프로퍼티 타입 설명
DefaultReadTimeout System.TimeSpan
ParseFailures EventHandler

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

FetchMessages() 공개 메소드

public FetchMessages ( long beginUid, long endUid, ImapFetchOption option ) : IEnumerable
beginUid long
endUid long
option ImapFetchOption
리턴 IEnumerable

FetchMessages() 공개 메소드

public FetchMessages ( long beginUid, long endUid, ImapFetchOption option, IEnumerable extensionParameterNames ) : IEnumerable
beginUid long
endUid long
option ImapFetchOption
extensionParameterNames IEnumerable
리턴 IEnumerable

FetchSection() 공개 메소드

public FetchSection ( long uid, ImapBodyPart part ) : object
uid long
part ImapBodyPart
리턴 object

FetchSection() 공개 메소드

public FetchSection ( long uid, ImapBodyPart part, bool peek ) : object
uid long
part ImapBodyPart
peek bool
리턴 object

FetchUids() 공개 메소드

public FetchUids ( long beginNumber, long endNumber ) : IEnumerable
beginNumber long
endNumber long
리턴 IEnumerable

FetchUids() 공개 메소드

public FetchUids ( long beginNumber, long endNumber, bool isUidSet ) : IEnumerable
beginNumber long
endNumber long
isUidSet bool
리턴 IEnumerable

ImapClient() 공개 메소드

public ImapClient ( string hostName, int portNumber, bool enableSsl, NetworkCredential credentials ) : System
hostName string
portNumber int
enableSsl bool
credentials System.Net.NetworkCredential
리턴 System

ListFolders() 공개 메소드

public ListFolders ( string reference, string wildcard ) : IEnumerable
reference string
wildcard string
리턴 IEnumerable

ListFoldersWithFlags() 공개 메소드

public ListFoldersWithFlags ( string reference, string wildcard, bool useXList ) : IEnumerable>>.IEnumerable
reference string
wildcard string
useXList bool
리턴 IEnumerable>>.IEnumerable

SelectFolder() 공개 메소드

public SelectFolder ( string folderName ) : ImapFolder
folderName string
리턴 ImapFolder

SelectFolder() 공개 메소드

public SelectFolder ( string folderName, bool isReadonly ) : ImapFolder
folderName string
isReadonly bool
리턴 ImapFolder

SendReceive() 공개 메소드

public SendReceive ( string command ) : SendReceiveResult
command string
리턴 SendReceiveResult

SetDeleted() 공개 메소드

public SetDeleted ( long beginUid, long endUid ) : void
beginUid long
endUid long
리턴 void

TryLogin() 공개 메소드

public TryLogin ( ) : bool
리턴 bool

TrySaslLogin() 공개 메소드

public TrySaslLogin ( string mechanism, string data ) : bool
mechanism string
data string
리턴 bool

프로퍼티 상세

DefaultReadTimeout 공개적으로 정적으로 프로퍼티

public static TimeSpan,System DefaultReadTimeout
리턴 System.TimeSpan

ParseFailures 공개적으로 프로퍼티

public EventHandler ParseFailures
리턴 EventHandler