beginning imap plugin

This commit is contained in:
Norm MacLennan
2014-05-07 09:38:59 -07:00
parent 0c48b0a884
commit 98f4e7a6d3
3 changed files with 42 additions and 0 deletions

37
src/NOCQ/ImapInput.cs Normal file
View File

@@ -0,0 +1,37 @@
using System;
namespace NOCQ
{
public class ImapInput
{
private string loginName { get; set; }
private string password { get; set; }
private string server { get; set; }
private string folderPath { get; set; }
public ImapInput (dynamic settings)
{
if (settings.Login == null
|| settings.Password == null
|| settings.Server == null
|| settings.FolderPath == null)
throw new ArgumentException ("You are missing a required setting.");
loginName = settings.Login;
password = settings.Password;
server = settings.Server;
folderPath = settings.FolderPath;
}
public void Run()
{
}
public void Stop()
{
}
}
}

View File

@@ -48,9 +48,13 @@
<Reference Include="System.Composition.TypedParts"> <Reference Include="System.Composition.TypedParts">
<HintPath>..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.TypedParts.dll</HintPath> <HintPath>..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.TypedParts.dll</HintPath>
</Reference> </Reference>
<Reference Include="AE.Net.Mail">
<HintPath>..\..\packages\AE.Net.Mail.1.7.9.1\lib\net45\AE.Net.Mail.dll</HintPath>
</Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ImapInput.cs" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup> <ItemGroup>

View File

@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="AE.Net.Mail" version="1.7.9.1" targetFramework="net45" />
<package id="Microsoft.Composition" version="1.0.27" targetFramework="net45" /> <package id="Microsoft.Composition" version="1.0.27" targetFramework="net45" />
</packages> </packages>