first working version

This commit is contained in:
2022-04-20 11:49:23 +02:00
parent 052ce75286
commit 523e2fc432
8 changed files with 91 additions and 18 deletions

View File

@@ -220,6 +220,8 @@ public class Rest extends HttpServlet {
var map = new HashMap<>();
if (list.hasState(MailingList.STATE_FORWARD_FROM)) map.put("forward_from",true);
if (list.hasState(MailingList.STATE_FORWARD_ATTACHED)) map.put("forward_attached",true);
if (list.hasState(MailingList.STATE_HIDE_RECEIVERS)) map.put("hide_receivers",true);
if (list.hasState(MailingList.STATE_REPLY_TO_LIST)) map.put("reply_to_list",true);
return map;
}

View File

@@ -291,6 +291,8 @@ public class Web extends TemplateServlet {
try {
list.forwardFrom(Util.getCheckbox(req, "forward_from"));
list.forwardAttached(Util.getCheckbox(req, "forward_attached"));
list.hideReceivers(Util.getCheckbox(req, "hide_receivers"));
list.replyToList(Util.getCheckbox(req, "reply_to_list"));
data.put(NOTES,t("Sucessfully updated MailingList!"));
} catch (SQLException e){
LOG.warn("Failed to update MailingList:",e);