fix build
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
*.dll
|
*.dll
|
||||||
|
*.userprefs
|
||||||
packages/
|
packages/
|
||||||
bin/
|
bin/
|
||||||
obj/
|
obj/
|
||||||
|
|||||||
@@ -1,22 +1,14 @@
|
|||||||
<Properties>
|
<Properties>
|
||||||
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
|
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
|
||||||
<MonoDevelop.Ide.Workbench ActiveDocument="src/NOCQ/Extensability/Catalog.cs">
|
<MonoDevelop.Ide.Workbench ActiveDocument="src/NOCQ/Plugins/Email/ImapInput.cs">
|
||||||
<Files>
|
<Files>
|
||||||
<File FileName="src/NOCQ/Plugins/Email/EmailSettings.cs" Line="13" Column="37" />
|
<File FileName="src/NOCQ/Plugins/Email/EmailSettings.cs" Line="14" Column="44" />
|
||||||
<File FileName="src/NOCQ/Plugins/Email/ImapInput.cs" Line="60" Column="4" />
|
<File FileName="src/NOCQ/Plugins/Email/ImapInput.cs" Line="19" Column="7" />
|
||||||
<File FileName="src/NOCQ/Extensability/Catalog.cs" Line="8" Column="6" />
|
|
||||||
</Files>
|
</Files>
|
||||||
<Pads>
|
<Pads>
|
||||||
<Pad Id="ProjectPad">
|
<Pad Id="ProjectPad">
|
||||||
<State expanded="True">
|
<State expanded="True">
|
||||||
<Node name="NOCQ" expanded="True">
|
<Node name="NOCQ" expanded="True" selected="True" />
|
||||||
<Node name="Extensability" expanded="True">
|
|
||||||
<Node name="Catalog.cs" selected="True" />
|
|
||||||
</Node>
|
|
||||||
<Node name="Plugins" expanded="True">
|
|
||||||
<Node name="Email" expanded="True" />
|
|
||||||
</Node>
|
|
||||||
</Node>
|
|
||||||
<Node name="NOCQ.Application" expanded="True" />
|
<Node name="NOCQ.Application" expanded="True" />
|
||||||
</State>
|
</State>
|
||||||
</Pad>
|
</Pad>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.ComponentModel.Composition;
|
|||||||
|
|
||||||
namespace NOCQ
|
namespace NOCQ
|
||||||
{
|
{
|
||||||
[Export(typeof(IDataImportHook))]
|
[InheritedExport]
|
||||||
public interface IDataImportHook
|
public interface IDataImportHook
|
||||||
{
|
{
|
||||||
string Name { get; set; }
|
string Name { get; set; }
|
||||||
|
|||||||
@@ -54,6 +54,7 @@
|
|||||||
<Reference Include="AE.Net.Mail">
|
<Reference Include="AE.Net.Mail">
|
||||||
<HintPath>..\..\packages\AE.Net.Mail.1.7.9.1\lib\net45\AE.Net.Mail.dll</HintPath>
|
<HintPath>..\..\packages\AE.Net.Mail.1.7.9.1\lib\net45\AE.Net.Mail.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="System.Core" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace NOCQ.Plugins.Email
|
namespace NOCQ.Plugins.Email
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
using AE.Net.Mail;
|
using AE.Net.Mail;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
namespace NOCQ.Plugins.Email
|
namespace NOCQ.Plugins.Email
|
||||||
{
|
{
|
||||||
@@ -14,7 +16,7 @@ namespace NOCQ.Plugins.Email
|
|||||||
private int port { get; set; }
|
private int port { get; set; }
|
||||||
private bool ssl { get; set; }
|
private bool ssl { get; set; }
|
||||||
private DateTime lastRun { get; set; }
|
private DateTime lastRun { get; set; }
|
||||||
private IEnumerable<ParseRule> parseRules{ get; set; }
|
private List<ParseRule> parseRules{ get; set; }
|
||||||
|
|
||||||
public ImapInput (dynamic settings)
|
public ImapInput (dynamic settings)
|
||||||
{
|
{
|
||||||
@@ -23,22 +25,18 @@ namespace NOCQ.Plugins.Email
|
|||||||
if (sets.Username == null
|
if (sets.Username == null
|
||||||
|| sets.Password == null
|
|| sets.Password == null
|
||||||
|| sets.Host == null
|
|| sets.Host == null
|
||||||
|| sets.Folder == null
|
|| sets.Folder == null)
|
||||||
|| sets.Frequency == null
|
|
||||||
|| sets.Port == null
|
|
||||||
|| sets.IsSsl == null)
|
|
||||||
throw new ArgumentException ("You are missing a required setting.");
|
throw new ArgumentException ("You are missing a required setting.");
|
||||||
|
|
||||||
parseRules = sets.ParseRules.Where (x => x.Enabled);
|
parseRules = sets.ParseRules.Where (x => x.Enabled).ToList();
|
||||||
|
|
||||||
loginName = settings.Login;
|
loginName = sets.Username;
|
||||||
password = settings.Password;
|
password = sets.Password;
|
||||||
server = settings.Server;
|
server = sets.Host;
|
||||||
folderPath = settings.FolderPath;
|
folderPath = sets.Folder;
|
||||||
|
|
||||||
timer = new Timer (settings.Frequency);
|
timer = new Timer (sets.Frequency);
|
||||||
|
//timer.Elapsed += Execute ();
|
||||||
timer.Elapsed += Execute ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user