From 0179e20a0162072bc4f9af91506246ae9a3b0ec3 Mon Sep 17 00:00:00 2001
From: Patrick Simpson
Date: Wed, 18 Apr 2018 13:43:20 +0300
Subject: [PATCH] Extra logging for send-as
---
.../AcaciaZPushPlugin/Features/SendAs/FeatureSendAs.cs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/SendAs/FeatureSendAs.cs b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/SendAs/FeatureSendAs.cs
index 6844f27..016c921 100644
--- a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/SendAs/FeatureSendAs.cs
+++ b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/SendAs/FeatureSendAs.cs
@@ -144,13 +144,15 @@ namespace Acacia.Features.SendAs
{
using (IStore store = item.GetStore())
{
+ Logger.Instance.Trace(this, "SendAs ItemSend: {0}: {1}", item.Subject, store?.DisplayName);
ZPushAccount zpush = Watcher.Accounts.GetAccount(store);
if (zpush != null)
{
string address = item.SenderEmailAddress;
+ Logger.Instance.Trace(this, "SendAs ItemSend address: {0}: {1} - {2}", item.EntryID, address, zpush.Account.SmtpAddress);
if (address != null && address != zpush.Account.SmtpAddress)
{
- Logger.Instance.Trace(this, "SendAs: {0}: {1}", address, item.SenderName);
+ Logger.Instance.Info(this, "SendAs: {0}: {1}", address, item.SenderName);
item.SetProperty(Constants.ZPUSH_SEND_AS, address);
if (item.SenderName != null)
item.SetProperty(Constants.ZPUSH_SEND_AS_NAME, item.SenderName);