// Token: 0x06000773 RID: 1907 RVA: 0x0001CFD4 File Offset: 0x0001B1D4 internal static AutodiscoverCommonUserSettings GetSettingsFromRecipient(ADUser user, string emailAddress) { bool flag = AutodiscoverCommonUserSettings.IsArchiveMailUser(user) || AutodiscoverCommonUserSettings.IsEmailAddressTargetingArchive(user, emailAddress); string domain = user.PrimarySmtpAddress.Domain; Guid mailboxGuid = flag ? user.ArchiveGuid : user.ExchangeGuid; return(new AutodiscoverCommonUserSettings(flag ? AutodiscoverCommonUserSettings.GetArchiveDisplayName(user) : user.DisplayName, flag ? user.GetAlternateMailboxLegDN(user.ArchiveGuid) : user.LegacyExchangeDN, user.PrimarySmtpAddress, ExchangeRpcClientAccess.CreatePersonalizedServer(mailboxGuid, domain), mailboxGuid)); }
// Token: 0x06000777 RID: 1911 RVA: 0x0001D0E4 File Offset: 0x0001B2E4 internal static bool IsEmailAddressTargetingArchive(ADUser adUser, string emailAddress) { if (adUser == null || string.IsNullOrEmpty(emailAddress)) { return(false); } bool result = false; Guid empty = Guid.Empty; if (AutodiscoverCommonUserSettings.TryGetExchangeGuidFromEmailAddress(emailAddress, out empty)) { result = empty.Equals(adUser.ArchiveGuid); } return(result); }
// Token: 0x06000774 RID: 1908 RVA: 0x0001D050 File Offset: 0x0001B250 internal static bool IsArchiveMailUser(ADRecipient recipient) { return(recipient.RecipientType == RecipientType.MailUser && AutodiscoverCommonUserSettings.HasLocalArchive(recipient)); }