Click here to Skip to main content
15,886,766 members
Articles / Programming Languages / XML

Understanding the Insides of the IMAP Mail Protocol: Part 3

Rate me:
Please Sign up or sign in to vote.
4.89/5 (30 votes)
4 Oct 2013MIT5 min read 115K   3.4K   80  
This article describes the receiving mail process in IMAP for beginners of the mail protocol.
The purpose of this article is to explore the inside of the IMAP protocol and show you how to implement it with C#.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.30703</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{1359B863-E7FC-4BCF-9652-4D05EA393C4C}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>HigLabo.Net</RootNamespace>
    <AssemblyName>HigLabo.Net</AssemblyName>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
    <SccProjectName>
    </SccProjectName>
    <SccLocalPath>
    </SccLocalPath>
    <SccAuxPath>
    </SccAuxPath>
    <SccProvider>
    </SccProvider>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Newtonsoft.Json">
      <HintPath>..\Reference\Newtonsoft.Json.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Core" />
    <Reference Include="System.Xml.Linq" />
    <Reference Include="System.Data.DataSetExtensions" />
    <Reference Include="Microsoft.CSharp" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Core\AsyncHttpCallErrorEventArgs.cs" />
    <Compile Include="Core\AsyncHttpContext.cs" />
    <Compile Include="Core\AsyncSocketCallErrorEventArgs.cs" />
    <Compile Include="Core\AsciiCharCode.cs" />
    <Compile Include="Core\ResponseObject.cs" />
    <Compile Include="Core\ResponseObjectParseException.cs" />
    <Compile Include="Core\StreamWriteContext.cs" />
    <Compile Include="Core\XmlAttribute.cs" />
    <Compile Include="Core\XmlData.cs" />
    <Compile Include="Extensions\DictionaryParserExtensions.cs" />
    <Compile Include="Extensions\StreamExtensions.cs" />
    <Compile Include="Extensions\XmlParserExtensions.cs" />
    <Compile Include="Http\HttpClient.AsyncCall.cs" />
    <Compile Include="Http\HttpClient.cs" />
    <Compile Include="Http\HttpClient.SyncCall.cs" />
    <Compile Include="Http\HttpMethodName.cs" />
    <Compile Include="Http\HttpProtocolType.cs" />
    <Compile Include="Http\HttpRequestCommand.cs" />
    <Compile Include="Http\HttpRequestUploadingEventArgs.cs" />
    <Compile Include="Http\HttpResponse.cs" />
    <Compile Include="Http\HttpResponseException.cs" />
    <Compile Include="OAuth\AccessTokenInfo.cs">
      <SubType>Code</SubType>
    </Compile>
    <Compile Include="OAuth\AuthorizeInfo.cs" />
    <Compile Include="OAuth\GetRequestTokenCommand.cs" />
    <Compile Include="OAuth\OAuthClient.AsyncCall.cs" />
    <Compile Include="OAuth\OAuthClient.cs" />
    <Compile Include="OAuth\OAuthClient.InnerClass.cs" />
    <Compile Include="OAuth\OAuthClient.Static.cs" />
    <Compile Include="OAuth\OAuthClient.SyncCall.cs" />
    <Compile Include="OAuth\OAuthMode.cs" />
    <Compile Include="OAuth\OAuthSignatureTypes.cs" />
    <Compile Include="OAuth\SignatureInfo.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Socket\BufferManager.cs" />
    <Compile Include="Socket\DataReceiveContext.cs" />
    <Compile Include="Socket\DataSendContext.cs" />
    <Compile Include="Socket\DataTransferContext.cs" />
    <Compile Include="Socket\SocketClient.cs" />
    <Compile Include="Socket\SocketClientException.cs" />
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
CEO TinyBetter, Inc
Japan Japan
I'm a CEO of TinyBetter, Inc in Japan.

Comments and Discussions