mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-30 04:30:49 +02:00
Merge #2548
2548: Fetchmail improvements (2) r=mergify[bot] a=nextgens Follow-up to #2529 Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
This commit is contained in:
commit
d650a9cc0f
@ -1,7 +1,7 @@
|
||||
from mailu.sso import sso
|
||||
import flask
|
||||
|
||||
@sso.route('/language/<language>', methods=['POST'])
|
||||
@sso.route('/language/<language>', methods=['GET','POST'])
|
||||
def set_language(language=None):
|
||||
if language:
|
||||
flask.session['language'] = language
|
||||
|
@ -42,6 +42,7 @@ class MultipleEmailAddressesVerify(object):
|
||||
raise validators.ValidationError(self.message)
|
||||
|
||||
class MultipleFoldersVerify(object):
|
||||
""" Ensure that we have CSV formated data """
|
||||
def __init__(self,message=_('Invalid list of folders.')):
|
||||
self.message = message
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
<td>{{ fetch.username }}</td>
|
||||
<td data-sort="{{ fetch.keep }}">{% if fetch.keep %}{% trans %}yes{% endtrans %}{% else %}{% trans %}no{% endtrans %}{% endif %}</td>
|
||||
<td data-sort="{{ fetch.scan }}">{% if fetch.scan %}{% trans %}yes{% endtrans %}{% else %}{% trans %}no{% endtrans %}{% endif %}</td>
|
||||
<td>{{ fetch.folders.data | join(',') }}</td>
|
||||
<td>{{ fetch.folders | join(',') }}</td>
|
||||
<td>{{ fetch.last_check | format_datetime or '-' }}</td>
|
||||
<td>{{ fetch.error or '-' }}</td>
|
||||
<td data-sort="{{ fetch.created_at or '0000-00-00' }}">{{ fetch.created_at | format_date }}</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user