This commit is contained in:
@@ -118,7 +118,7 @@ namespace Swarmops.Logic.DataObjects
|
||||
// Added for more sorting opportunities
|
||||
public static Comparison<Person> 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;
|
||||
|
||||
@@ -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<Person>();
|
||||
uniqueTableEmail[p.Email].Add(p);
|
||||
uniqueTableEmail[p.Mail] = new List<Person>();
|
||||
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)
|
||||
{
|
||||
|
||||
@@ -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 +
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user