working on mailing list options

This commit is contained in:
2022-04-20 09:55:58 +02:00
parent 2c99aa20b3
commit 68f361e15b
7 changed files with 59 additions and 16 deletions

View File

@@ -219,6 +219,7 @@ public class Rest extends HttpServlet {
if (list == null) return Map.of(ERROR,t("Mailinglist {} unknown",list.email()));
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);
return map;
}