Browse Source

Account for S22.Imap API changes

master
smiley22 13 years ago
parent
commit
ebca9366fc
  1. 2
      Dialog.cs
  2. 2
      Imap.cs
  3. 7
      ImapNotify.csproj
  4. 12
      ImapNotify.sln
  5. 0
      Resources/Icon.ico

2
Dialog.cs

@ -111,7 +111,7 @@ namespace ImapNotify {
(new SoundPlayer(soundPath)).Play();
} catch (Exception) { }
}
UpdateTrayIcon(Imap.GetUnreadCount());
UpdateTrayIcon(e.UnreadMails);
}
private void notifyIcon_BalloonTipClicked(object sender, EventArgs e) {

2
Imap.cs

@ -30,7 +30,7 @@ namespace ImapNotify {
MailMessage m = null;
int messageCount;
lock (IC) {
m = IC.GetMessage(e.MessageUID, false);
m = IC.GetMessage(e.MessageUID, FetchOptions.TextOnly, false);
messageCount = IC.Search(SearchCondition.Unseen()).Length;
};
NewMessageEventArgs args = new NewMessageEventArgs(m, messageCount);

7
ImapNotify.csproj

@ -49,10 +49,11 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Icon.ico</ApplicationIcon>
<ApplicationIcon>Resources\Icon.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="S22.Imap">
<Reference Include="S22.Imap, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\S22.Imap\bin\Debug\S22.Imap.dll</HintPath>
</Reference>
<Reference Include="System" />
@ -104,7 +105,7 @@
<None Include="Resources\2.ico" />
</ItemGroup>
<ItemGroup>
<Content Include="Icon.ico" />
<Content Include="Resources\Icon.ico" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.0,Profile=Client">

12
ImapNotify.sln

@ -3,6 +3,8 @@ Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImapNotify", "ImapNotify.csproj", "{8358DCEB-76E6-4181-82DC-DD1F9759156A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "S22.Imap", "..\S22.Imap\S22.Imap.csproj", "{369C32A5-E099-4BD5-BBBF-51713947CA99}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -23,6 +25,16 @@ Global
{8358DCEB-76E6-4181-82DC-DD1F9759156A}.Release|Mixed Platforms.Build.0 = Release|x86
{8358DCEB-76E6-4181-82DC-DD1F9759156A}.Release|x86.ActiveCfg = Release|x86
{8358DCEB-76E6-4181-82DC-DD1F9759156A}.Release|x86.Build.0 = Release|x86
{369C32A5-E099-4BD5-BBBF-51713947CA99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{369C32A5-E099-4BD5-BBBF-51713947CA99}.Debug|Any CPU.Build.0 = Debug|Any CPU
{369C32A5-E099-4BD5-BBBF-51713947CA99}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{369C32A5-E099-4BD5-BBBF-51713947CA99}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{369C32A5-E099-4BD5-BBBF-51713947CA99}.Debug|x86.ActiveCfg = Debug|Any CPU
{369C32A5-E099-4BD5-BBBF-51713947CA99}.Release|Any CPU.ActiveCfg = Release|Any CPU
{369C32A5-E099-4BD5-BBBF-51713947CA99}.Release|Any CPU.Build.0 = Release|Any CPU
{369C32A5-E099-4BD5-BBBF-51713947CA99}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{369C32A5-E099-4BD5-BBBF-51713947CA99}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{369C32A5-E099-4BD5-BBBF-51713947CA99}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

0
Icon.ico → Resources/Icon.ico

Loading…
Cancel
Save