Skip to content

Commit

Permalink
[MailEnable] Added Delete Message on Forward to Portal. It appears to…
Browse files Browse the repository at this point in the history
… already be in Server and working.
  • Loading branch information
FuseCP-TRobinson committed Dec 6, 2024
1 parent 1cd3d45 commit 43b193a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,13 @@
<asp:TextBox id="txtForward" runat="server" Width="200px" CssClass="form-control"></asp:TextBox>
</td>
</tr>
<tr>
<td class="SubHead">
</td>
<td class="Normal">
<asp:CheckBox ID="chkDeleteOnForward" runat="server" meta:resourcekey="chkDeleteOnForward"
Text="Delete Message on Forward"></asp:CheckBox>
</td>
</tr>
</table>
</asp:Panel>
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public void BindItem(MailAccount item)
txtSubject.Text = item.ResponderSubject;
txtMessage.Text = item.ResponderMessage;
txtForward.Text = item.ForwardingAddresses != null ? String.Join("; ", item.ForwardingAddresses) : "";
chkDeleteOnForward.Checked = item.DeleteOnForward;
}

public void SaveItem(MailAccount item)
Expand All @@ -67,6 +68,7 @@ public void SaveItem(MailAccount item)
item.ResponderSubject = txtSubject.Text;
item.ResponderMessage = txtMessage.Text;
item.ForwardingAddresses = Utils.ParseDelimitedString(txtForward.Text, ';', ' ', ',');
item.DeleteOnForward = chkDeleteOnForward.Checked;
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 43b193a

Please sign in to comment.