This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace TestAsync | |
{ | |
class Program | |
{ | |
static async Task Main(string[] args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//MailKit https://www.nuget.org/packages/MailKit | |
//Note: Must Turn on "Less secure app access" on your Google account | |
using MailKit; | |
using MailKit.Net.Imap; | |
using MailKit.Search; | |
using System; | |
using System.Text.RegularExpressions; | |
using System.Threading; |