Skip to content

Commit

Permalink
Markdown woes
Browse files Browse the repository at this point in the history
  • Loading branch information
smiley22 committed Jan 16, 2014
1 parent f7642a6 commit b385ec7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Examples.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
using (ImapClient Client = new ImapClient("imap.gmail.com", 993, using (ImapClient Client = new ImapClient("imap.gmail.com", 993,
"username", "password", AuthMethod.Login, true)) "username", "password", AuthMethod.Login, true))
{ {
IEnumerable&lt;uint&gt; uids = Client.Search( SearchCondition.Unseen() ); IEnumerable<uint> uids = Client.Search( SearchCondition.Unseen() );
IEnumerable&lt;MailMessage&gt; messages = Client.GetMessages(uids); IEnumerable<MailMessage> messages = Client.GetMessages(uids);
} }
} }
} }
Expand All @@ -61,7 +61,7 @@
{ {
// Find messages that were sent from abc@def.com and have // Find messages that were sent from abc@def.com and have
// the string "Hello World" in their subject line. // the string "Hello World" in their subject line.
IEnumerable&lt;uint&gt; uids = Client.Search( IEnumerable<uint> uids = Client.Search(
SearchCondition.From("abc@def.com").And( SearchCondition.From("abc@def.com").And(
SearchCondition.Subject("Hello World")) SearchCondition.Subject("Hello World"))
); );
Expand Down Expand Up @@ -146,12 +146,12 @@
"username", "password", AuthMethod.Login, true)) "username", "password", AuthMethod.Login, true))
{ {
// This returns *ALL* messages in the inbox. // This returns *ALL* messages in the inbox.
IEnumerable&lt;uint&gt; uids = Client.Search( SearchCondition.All() ); IEnumerable<uint> uids = Client.Search( SearchCondition.All() );


// If we're only interested in the subject line or envelope // If we're only interested in the subject line or envelope
// information, just downloading the mail headers is alot // information, just downloading the mail headers is alot
// cheaper and alot faster. // cheaper and alot faster.
IEnumerable&lt;MailMessage&gt; messages = Client.GetMessages(uids. FetchOptions.HeadersOnly); IEnumerable<MailMessage> messages = Client.GetMessages(uids. FetchOptions.HeadersOnly);
} }
} }
} }
Expand All @@ -170,13 +170,13 @@
"username", "password", AuthMethod.Login, true)) "username", "password", AuthMethod.Login, true))
{ {
// This returns all messages sent since August 23rd 2012. // This returns all messages sent since August 23rd 2012.
IEnumerable&lt;uint&gt; uids = Client.Search( IEnumerable<uint> uids = Client.Search(
SearchCondition.SentSince( new DateTime(2012, 8, 23) ) SearchCondition.SentSince( new DateTime(2012, 8, 23) )
); );


// The expression will be evaluated for every MIME part // The expression will be evaluated for every MIME part
// of every mail message in the uids collection. // of every mail message in the uids collection.
IEnumerable&lt;MailMessage&gt; messages = Client.GetMessages(uids, IEnumerable<MailMessage> messages = Client.GetMessages(uids,
(Bodypart part) => { (Bodypart part) => {
// We're only interested in attachments. // We're only interested in attachments.
if(part.Disposition.Type == ContentDispositionType.Attachment) if(part.Disposition.Type == ContentDispositionType.Attachment)
Expand Down Expand Up @@ -211,13 +211,13 @@
"username", "password", AuthMethod.Login, true)) "username", "password", AuthMethod.Login, true))
{ {
// This returns all messages sent since August 23rd 2012. // This returns all messages sent since August 23rd 2012.
IEnumerable&lt;uint&gt; uids = Client.Search( IEnumerable<uint> uids = Client.Search(
SearchCondition.SentSince( new DateTime(2012, 8, 23) ) SearchCondition.SentSince( new DateTime(2012, 8, 23) )
); );


// The expression will be evaluated for every MIME part // The expression will be evaluated for every MIME part
// of every mail message in the uids collection. // of every mail message in the uids collection.
IEnumerable&lt;MailMessage&gt; messages = Client.GetMessages(uids, IEnumerable<MailMessage> messages = Client.GetMessages(uids,
(Bodypart part) => { (Bodypart part) => {
// We're only interested in attachments. // We're only interested in attachments.
if(part.Disposition.Type == ContentDispositionType.Attachment) if(part.Disposition.Type == ContentDispositionType.Attachment)
Expand Down

0 comments on commit b385ec7

Please sign in to comment.