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