beginning imap plugin
This commit is contained in:
37
src/NOCQ/ImapInput.cs
Normal file
37
src/NOCQ/ImapInput.cs
Normal 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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,9 +48,13 @@
|
||||
<Reference Include="System.Composition.TypedParts">
|
||||
<HintPath>..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.TypedParts.dll</HintPath>
|
||||
</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>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ImapInput.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="AE.Net.Mail" version="1.7.9.1" targetFramework="net45" />
|
||||
<package id="Microsoft.Composition" version="1.0.27" targetFramework="net45" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user