private static string GetEscapedSmtpLocalWithHash(SmtpAddress smtpAddress) { return("_" + FileSystemPhotoMap.Escape(smtpAddress.Local.Substring(0, Math.Min(20, smtpAddress.Local.Length))) + "-" + FileSystemPhotoMap.NormalizeAndHash(smtpAddress.ToString())); }
private static string GetEscapedSmtpDomainWithHash(SmtpAddress smtpAddress) { return("_" + FileSystemPhotoMap.Escape(smtpAddress.Domain.Substring(0, Math.Min(30, smtpAddress.Domain.Length))) + "-" + FileSystemPhotoMap.NormalizeAndHash(smtpAddress.Domain)); }