Skip to content

Commit

Permalink
- Fixed: not support argument 'email_only=yes' while getting subscrib…
Browse files Browse the repository at this point in the history
…ers of mailing list.

- Bump version number: 1.8.
  • Loading branch information
iredmail committed Oct 25, 2018
1 parent c00b180 commit 1e2b40b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion controllers/subscriber.py
Expand Up @@ -27,7 +27,10 @@ def GET(self, mail):
'<subscription3>': [<mail>, <mail>, ...]}
"""
# Get extra parameters.
qr = mlmmj.get_subscribers(mail=mail)
form = web.input(_unicode=False)
email_only = ('email_only' in form)

qr = mlmmj.get_subscribers(mail=mail, email_only=email_only)
return api_render(qr)

@api_acl
Expand Down
2 changes: 1 addition & 1 deletion libs/__init__.py
@@ -1,2 +1,2 @@
__version__ = '1.4'
__version__ = '1.8'
__author__ = 'Zhang Huangbin <zhb@iredmail.org>'

0 comments on commit 1e2b40b

Please sign in to comment.