Abhilash Raj pushed to branch master at GNU Mailman / Mailman Core

Commits:
0a8408b5 by Jake Scaltreto at 2018-09-04T21:40:59Z
Expose max_num_recipients via listconf REST

- - - - -
1aa27388 by Abhilash Raj at 2018-09-07T23:13:47Z
Merge branch 'max-num-recipients' into 'master'

Expose max_num_recipients via listconf REST

Closes #508

See merge request mailman/mailman!410
- - - - -


4 changed files:

- src/mailman/docs/NEWS.rst
- src/mailman/rest/docs/listconf.rst
- src/mailman/rest/listconf.py
- src/mailman/rest/tests/test_listconf.py


Changes:

=====================================
src/mailman/docs/NEWS.rst
=====================================
@@ -26,6 +26,10 @@ Bugs
 * Autoresponses to posts and -owner and -request messages now work.
   (Closes #504)
 
+REST
+----
+* Allow setting ``max_num_recipients`` for a mailing list. (Closes #508)
+
 
 3.2.0 -- "La Villa Strangiato"
 ==============================


=====================================
src/mailman/rest/docs/listconf.rst
=====================================
@@ -63,6 +63,7 @@ All readable attributes for a list are available on a 
sub-resource.
     list_name: ant
     mail_host: example.com
     max_message_size: 40
+    max_num_recipients: 10
     moderator_password: None
     next_digest_number: 1
     no_reply_address: nore...@example.com
@@ -137,6 +138,7 @@ When using ``PUT``, all writable attributes must be 
included.
     ...             moderator_password='password',
     ...             max_message_size='500',
     ...             respond_to_post_requests=True,
+    ...             max_num_recipients='20',
     ...             ),
     ...           'PUT')
     content-length: 0


=====================================
src/mailman/rest/listconf.py
=====================================
@@ -186,6 +186,7 @@ ATTRIBUTES = dict(
     subscription_policy=GetterSetter(enum_validator(SubscriptionPolicy)),
     volume=GetterSetter(None),
     respond_to_post_requests=GetterSetter(as_boolean),
+    max_num_recipients=GetterSetter(integer_ge_zero_validator),
     )
 
 


=====================================
src/mailman/rest/tests/test_listconf.py
=====================================
@@ -82,6 +82,7 @@ RESOURCE = dict(
     subscription_policy='confirm_then_moderate',
     welcome_message_uri='mailman:///welcome.txt',
     respond_to_post_requests=True,
+    max_num_recipients=150,
     )
 
 



View it on GitLab: 
https://gitlab.com/mailman/mailman/compare/64c086d9535f061b41fe2cd0ac5084d424ff8a6a...1aa27388b68ec4e3dbc49ac6e66d0fd744c9ca92

-- 
View it on GitLab: 
https://gitlab.com/mailman/mailman/compare/64c086d9535f061b41fe2cd0ac5084d424ff8a6a...1aa27388b68ec4e3dbc49ac6e66d0fd744c9ca92
You're receiving this email because of your account on gitlab.com.
_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to