C# Class MailKit.MessageThreader

Threads messages according to the algorithms defined in rfc5256.
Threads messages according to the algorithms defined in rfc5256.
ファイルを表示 Open project: jstedfast/MailKit Class Usage Examples

Public Methods

Method Description
GetThreadableSubject ( string subject, int &replyDepth ) : string

Gets the threadable subject.

Gets the threadable subject.

Thread ( this messages, ThreadingAlgorithm algorithm ) : IList

Thread the messages according to the specified threading algorithm.

Thread the messages according to the specified threading algorithm.

Thread ( this messages, ThreadingAlgorithm algorithm, IList orderBy ) : IList

Threads the messages according to the specified threading algorithm and sorts the resulting threads by the specified ordering.

Threads the messages according to the specified threading algorithm and sorts the resulting threads by the specified ordering.

Private Methods

Method Description
CreateIdTable ( IEnumerable messages ) : ThreadableNode>.IDictionary
CreateRoot ( ThreadableNode>.IDictionary ids ) : ThreadableNode
GetThreads ( ThreadableNode root, IList threads, IList orderBy ) : void
GroupBySubject ( ThreadableNode root ) : void
IsForward ( string subject, int index ) : bool
IsMailingListName ( char c ) : bool
IsReply ( string subject, int index ) : bool
PruneEmptyContainers ( ThreadableNode root ) : void
SkipDigits ( string subject, int &index, int &value ) : bool
SkipMailingListName ( string subject, int &index ) : void
SkipWhiteSpace ( string subject, int &index ) : void
ThreadByReferences ( IEnumerable messages, IList orderBy ) : IList
ThreadBySubject ( IEnumerable messages, IList orderBy ) : IList

Method Details

GetThreadableSubject() public static method

Gets the threadable subject.
Gets the threadable subject.
/// is null. ///
public static GetThreadableSubject ( string subject, int &replyDepth ) : string
subject string The Subject header value.
replyDepth int The reply depth.
return string

Thread() public static method

Thread the messages according to the specified threading algorithm.
Thread the messages according to the specified threading algorithm.
/// is null. /// /// is not a valid threading algorithm. /// /// contains one or more items that is missing information needed for threading. ///
public static Thread ( this messages, ThreadingAlgorithm algorithm ) : IList
messages this The messages.
algorithm ThreadingAlgorithm The threading algorithm.
return IList

Thread() public static method

Threads the messages according to the specified threading algorithm and sorts the resulting threads by the specified ordering.
Threads the messages according to the specified threading algorithm and sorts the resulting threads by the specified ordering.
/// is null. /// -or- /// is null. /// /// is not a valid threading algorithm. /// /// contains one or more items that is missing information needed for threading or sorting. /// -or- /// is an empty list. ///
public static Thread ( this messages, ThreadingAlgorithm algorithm, IList orderBy ) : IList
messages this The messages.
algorithm ThreadingAlgorithm The threading algorithm.
orderBy IList The requested sort ordering.
return IList