Skip to content

Commit

Permalink
[SmarterMail100] Fix for import resources for DomainAliases (Group an…
Browse files Browse the repository at this point in the history
…d Mail)

Tested with SmarterMail Free 100.0.9088.25586 (Nov 18, 2024)
  • Loading branch information
FuseCP-TRobinson committed Nov 25, 2024
1 parent aac1f0c commit 241738d
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -663,13 +663,17 @@ public string[] GetDomainAliases(string domainName)
if (!success)
throw new Exception(result["message"]);

foreach (dynamic domain in result["domainAliasData"])
if (result["domainAliasData"] != null)
{
string domainAliasName = domain["name"].ToString();
domainAliasNames.Add(domainAliasName);
foreach (dynamic domain in result["domainAliasData"])
{
string domainAliasName = domain["name"].ToString();
domainAliasNames.Add(domainAliasName);
}
}

return domainAliasNames.ToArray();

return domainAliasNames.ToArray();
}
catch (Exception ex)
{
Expand Down Expand Up @@ -1983,7 +1987,7 @@ public MailList[] GetLists(string domainName)
//list.Moderated
list.Password = member["password"].ToString();
list.RequirePassword = Convert.ToBoolean(member.requirePassword);
list.PostingMode = member["postingPermissions"].ToString();
list.PostingMode = (PostingMode)Convert.ToInt64(member["postingPermissions"]);
list.SubjectPrefix = member["subject"].ToString();
list.EnableSubjectPrefix = Convert.ToBoolean(member["prependSubject"]);
//list.MaxMessageSize
Expand Down

0 comments on commit 241738d

Please sign in to comment.