Skip to content

Commit

Permalink
Merge pull request #12 from t-miyake/develop
Browse files Browse the repository at this point in the history
Fix distribution list problem.
  • Loading branch information
t-miyake committed Oct 1, 2017
2 parents 40ae103 + 8d0a342 commit 485a781
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
11 changes: 8 additions & 3 deletions OutlookOkan/ConfirmationWindow.cs
Expand Up @@ -51,14 +51,19 @@ private void MakeDisplayNameAndRecipient(Outlook._MailItem mail)
// Exchangeの連絡先に登録された情報を取得。
var exchangeUser = recip.AddressEntry.GetExchangeUser();

// Exchangeの配布リスト(ML)として登録された情報を取得。
var exchangeDistributionList = recip.AddressEntry.GetExchangeDistributionList();

// ローカルの連絡先に登録された情報を取得。
var registeredUser = recip.AddressEntry.GetContact();

// 登録されたメールアドレスの場合、登録名のみが表示されるため、メールアドレスと共に表示されるよう表示用テキストを生成。
var nameAndMailAddress = exchangeUser != null
? exchangeUser.Name + $@" ({exchangeUser.PrimarySmtpAddress})"
: registeredUser != null
? recip.Name
? exchangeUser.Name + $@" ({exchangeUser.PrimarySmtpAddress})" :
exchangeDistributionList != null
? exchangeDistributionList.Name + $@" ({exchangeDistributionList.PrimarySmtpAddress})" :
registeredUser != null
? recip.Name + $@" ({recip.Address})"
: recip.Address;

_displayNameAndRecipient[recip.Name] = nameAndMailAddress;
Expand Down
4 changes: 2 additions & 2 deletions OutlookOkan/OutlookOkan.csproj
Expand Up @@ -36,8 +36,8 @@
<PublishUrl>C:\</PublishUrl>
<InstallUrl />
<TargetCulture>ja</TargetCulture>
<ApplicationVersion>1.0.2.0</ApplicationVersion>
<AutoIncrementApplicationRevision>true</AutoIncrementApplicationRevision>
<ApplicationVersion>1.0.3.0</ApplicationVersion>
<AutoIncrementApplicationRevision>false</AutoIncrementApplicationRevision>
<UpdateEnabled>false</UpdateEnabled>
<UpdateInterval>0</UpdateInterval>
<UpdateIntervalUnits>days</UpdateIntervalUnits>
Expand Down
8 changes: 5 additions & 3 deletions OutlookOkan/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
using System.Reflection;
using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security;
Expand Down Expand Up @@ -33,6 +34,7 @@
// すべての値を指定するか、以下のように '*' を使ってビルドおよびリビジョン番号を
// 既定値にすることができます。
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.2.0")]
[assembly: AssemblyFileVersion("1.0.2.0")]
[assembly: AssemblyVersion("1.0.3.0")]
[assembly: AssemblyFileVersion("1.0.3.0")]
[assembly: NeutralResourcesLanguage("ja-JP")]

2 changes: 1 addition & 1 deletion OutlookOkan/SettingWindow.cs
Expand Up @@ -5,7 +5,7 @@

namespace OutlookOkan
{
//TODO 全体を簡潔に修正する。\
//TODO 全体を簡潔に修正する。
public partial class SettingWindow : Form
{
public SettingWindow()
Expand Down

0 comments on commit 485a781

Please sign in to comment.