mirror of
https://github.com/Kopano-dev/kopano-ol-extension.git
synced 2023-10-10 13:37:40 +02:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
81f0d0e3f2
@ -121,22 +121,34 @@ namespace Acacia.Features.SendAs
|
|||||||
}
|
}
|
||||||
private static readonly BoolOption OPTION_GAB_LOOKUP = new BoolOption("GABLookup", true);
|
private static readonly BoolOption OPTION_GAB_LOOKUP = new BoolOption("GABLookup", true);
|
||||||
|
|
||||||
|
[AcaciaOption("Enables local resolving look ups for senders. This is disabled by default, as it seems " +
|
||||||
|
"local contacts may lead to wrong senders.")]
|
||||||
|
public bool ResolveLocal
|
||||||
|
{
|
||||||
|
get { return GetOption(OPTION_RESOLVE_LOCAL); }
|
||||||
|
set { SetOption(OPTION_RESOLVE_LOCAL, value); }
|
||||||
|
}
|
||||||
|
private static readonly BoolOption OPTION_RESOLVE_LOCAL = new BoolOption("ResolveLocal", false);
|
||||||
|
|
||||||
internal IRecipient FindSendAsSender(ZPushAccount zpush, GABUser user)
|
internal IRecipient FindSendAsSender(ZPushAccount zpush, GABUser user)
|
||||||
{
|
{
|
||||||
// First try a simple resolve, this will work if the username is unique
|
// First try a simple resolve, this will work if the username is unique
|
||||||
IRecipient recip = ThisAddIn.Instance.ResolveRecipient(user.UserName);
|
if (ResolveLocal)
|
||||||
if (recip != null)
|
|
||||||
{
|
{
|
||||||
// If it's resolved, we're good. Otherwise dispose and continue
|
IRecipient recip = ThisAddIn.Instance.ResolveRecipient(user.UserName);
|
||||||
if (recip.IsResolved)
|
if (recip != null)
|
||||||
{
|
{
|
||||||
Logger.Instance.Trace(this, "Resolved send-as: {0}", recip.Name);
|
// If it's resolved, we're good. Otherwise dispose and continue
|
||||||
return recip;
|
if (recip.IsResolved)
|
||||||
}
|
{
|
||||||
else
|
Logger.Instance.Trace(this, "Resolved send-as: {0}", recip.Name);
|
||||||
{
|
return recip;
|
||||||
Logger.Instance.Trace(this, "Unresolved send-as: {0}", user.UserName);
|
}
|
||||||
recip.Dispose();
|
else
|
||||||
|
{
|
||||||
|
Logger.Instance.Trace(this, "Unresolved send-as: {0}", user.UserName);
|
||||||
|
recip.Dispose();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1952
translations/de.po
1952
translations/de.po
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user