diff --git a/Logic/DataObjects/PeopleDataObject.cs b/Logic/DataObjects/PeopleDataObject.cs index 047d920d..74126d9e 100644 --- a/Logic/DataObjects/PeopleDataObject.cs +++ b/Logic/DataObjects/PeopleDataObject.cs @@ -118,7 +118,7 @@ namespace Swarmops.Logic.DataObjects // Added for more sorting opportunities public static Comparison EmailComparison = delegate(Person p1, Person p2) { - int cmpRes = p1.Email.CompareTo(p2.Email); + int cmpRes = p1.Mail.CompareTo(p2.Mail); if (cmpRes == 0) cmpRes = p1.Name.CompareTo(p2.Name); return cmpRes; diff --git a/Logic/Security/Authorization.cs b/Logic/Security/Authorization.cs index e28e6252..262ad9a1 100644 --- a/Logic/Security/Authorization.cs +++ b/Logic/Security/Authorization.cs @@ -641,18 +641,18 @@ namespace Swarmops.Logic.Security uniqueTablePhone[p.Phone].Add(p); } - if (uniqueTableEmail.ContainsKey(p.Email)) + if (uniqueTableEmail.ContainsKey(p.Mail)) { - foreach (var sameperson in uniqueTableEmail[p.Email]) + foreach (var sameperson in uniqueTableEmail[p.Mail]) { MatchPerson(result, p, sameperson); } - uniqueTableEmail[p.Email].Add(p); + uniqueTableEmail[p.Mail].Add(p); } else { - uniqueTableEmail[p.Email] = new List(); - uniqueTableEmail[p.Email].Add(p); + uniqueTableEmail[p.Mail] = new List(); + uniqueTableEmail[p.Mail].Add(p); } } @@ -666,7 +666,7 @@ namespace Swarmops.Logic.Security ++matches; if (p.Phone.Trim() == sameperson.Phone.Trim()) ++matches; - if (p.Email.Trim().ToLower() == sameperson.Email.Trim().ToLower()) + if (p.Mail.Trim().ToLower() == sameperson.Email.Trim().ToLower()) ++matches; if (matches > 1) { diff --git a/Logic/Special/Sweden/SupportDatabase.cs b/Logic/Special/Sweden/SupportDatabase.cs index 7a1246dd..dac35509 100644 --- a/Logic/Special/Sweden/SupportDatabase.cs +++ b/Logic/Special/Sweden/SupportDatabase.cs @@ -481,7 +481,7 @@ namespace Swarmops.Logic.Special.Sweden try { person.SendPhoneMessage("Piratpartiet: den mailadress vi har till dig (" + - person.Email + + person.Mail + ") studsar. Kontakta medlemsservice@piratpartiet.se med ny adress."); CloseWithComment(@case.Identity, "Successfully notified the member at phone# " + person.Phone + diff --git a/Utility/BotCode/NewsletterChecker.cs b/Utility/BotCode/NewsletterChecker.cs index b75e0aaa..5a5a75d9 100644 --- a/Utility/BotCode/NewsletterChecker.cs +++ b/Utility/BotCode/NewsletterChecker.cs @@ -196,7 +196,7 @@ namespace Swarmops.Utility.BotCode int recipientCount = 0; foreach (Person recipient in recipients) { - if (!Formatting.ValidateEmailFormat(recipient.Email) + if (!Formatting.ValidateEmailFormat(recipient.Mail) || recipient.MailUnreachable || recipient.NeverMail) { diff --git a/Utility/BotCode/PressReleaseChecker.cs b/Utility/BotCode/PressReleaseChecker.cs index 1b07e3ea..036b8f02 100644 --- a/Utility/BotCode/PressReleaseChecker.cs +++ b/Utility/BotCode/PressReleaseChecker.cs @@ -212,7 +212,7 @@ namespace Swarmops.Utility.BotCode foreach (int key in officerLookup.Keys) { Person recipient = Person.FromIdentity(key); - if (!Formatting.ValidateEmailFormat(recipient.Email)) + if (!Formatting.ValidateEmailFormat(recipient.Mail)) { continue; } diff --git a/Utility/BotCode/RosterHousekeeping.cs b/Utility/BotCode/RosterHousekeeping.cs index 9a4b0ef9..35afeb95 100644 --- a/Utility/BotCode/RosterHousekeeping.cs +++ b/Utility/BotCode/RosterHousekeeping.cs @@ -125,7 +125,7 @@ namespace Swarmops.Utility.BotCode Console.Write("."); PWLog.Write(PWLogItem.Person, membership.PersonId, PWLogAction.MembershipRenewReminder, - "Mail was sent to " + membership.Person.Email + + "Mail was sent to " + membership.Person.Mail + " reminding to renew membership in " + membership.Organization.Name + ".", string.Empty); Console.Write("."); @@ -141,7 +141,7 @@ namespace Swarmops.Utility.BotCode } catch (Exception x) { - string logText = "FAILED sending mail to " + membership.Person.Email + + string logText = "FAILED sending mail to " + membership.Person.Mail + " for reminder of pending renewal in " + membership.Organization.Name + "."; failedReminders.Add(membership.Person.Canonical); PWLog.Write(PWLogItem.Person, membership.PersonId, @@ -314,7 +314,7 @@ namespace Swarmops.Utility.BotCode SendReminderMail(membership); PWLog.Write(PWLogItem.Person, membership.PersonId, PWLogAction.MembershipRenewReminder, - "Mail was sent to " + membership.Person.Email + + "Mail was sent to " + membership.Person.Mail + " reminding to renew membership in " + membership.Organization.Name + ".", string.Empty); } catch (Exception ex) @@ -687,7 +687,7 @@ namespace Swarmops.Utility.BotCode ++sentCounter; PWLog.Write(PWLogItem.Person, membership.PersonId, PWLogAction.MembershipRenewReminder, - "Mail was sent to " + membership.Person.Email + + "Mail was sent to " + membership.Person.Mail + " for recommendation of organisation change in " + membership.Organization.Name + ".", membership.Organization.Identity.ToString() + "/" + expectedLowOrg.Identity.ToString()); } @@ -695,7 +695,7 @@ namespace Swarmops.Utility.BotCode catch (Exception x) { ++failCounter; - string logText = "FAILED sending mail to " + membership.Person.Email + + string logText = "FAILED sending mail to " + membership.Person.Mail + " for recommendation of organisation change in " + membership.Organization.Name + "."; PWLog.Write(PWLogItem.Person, membership.PersonId, PWLogAction.MembershipRenewReminder,