removed some more whitespace

master
Alexander Graf 3 years ago
parent 8c31699baf
commit 9bc685c30b

@ -19,7 +19,7 @@ if header :index 2 :matches "Received" "from * by * for <*>; *"
} }
{% if user.spam_enabled %} {% if user.spam_enabled %}
if spamtest :percent :value "gt" :comparator "i;ascii-numeric" "{{ user.spam_threshold }}" if spamtest :percent :value "gt" :comparator "i;ascii-numeric" "{{ user.spam_threshold }}"
{ {
setflag "\\seen"; setflag "\\seen";
fileinto :create "Junk"; fileinto :create "Junk";
@ -32,6 +32,6 @@ if exists "X-Virus" {
stop; stop;
} }
{% if user.reply_active %} {% if user.reply_active %}
vacation :days 1 {% if user.displayed_name != "" %}:from "{{ user.displayed_name }} <{{ user.email }}>"{% endif %} :subject "{{ user.reply_subject }}" "{{ user.reply_body }}"; vacation :days 1 {% if user.displayed_name != "" %}:from "{{ user.displayed_name }} <{{ user.email }}>"{% endif %} :subject "{{ user.reply_subject }}" "{{ user.reply_body }}";
{% endif %} {% endif %}

@ -119,7 +119,7 @@ def password(localpart, domain_name, password):
""" Change the password of an user """ Change the password of an user
""" """
email = f'{localpart}@{domain_name}' email = f'{localpart}@{domain_name}'
user = models.User.query.get(email) user = models.User.query.get(email)
if user: if user:
user.set_password(password) user.set_password(password)
else: else:

@ -1,5 +1,5 @@
from flask import Blueprint from flask import Blueprint
sso = Blueprint('sso', __name__, static_folder=None ,template_folder='templates') sso = Blueprint('sso', __name__, static_folder=None, template_folder='templates')
from mailu.sso.views import * from mailu.sso.views import *

@ -3,9 +3,9 @@
{%- block content %} {%- block content %}
{%- call macros.card() %} {%- call macros.card() %}
<form class="form" method="post" role="form"> <form class="form" method="post" role="form">
{{ macros.form_field(form.email) }} {{ macros.form_field(form.email) }}
{{ macros.form_field(form.pw) }} {{ macros.form_field(form.pw) }}
{{ macros.form_fields( fields, label=False, class="btn btn-default", spacing=False) }} {{ macros.form_fields(fields, label=False, class="btn btn-default", spacing=False) }}
</form> </form>
{%- endcall %} {%- endcall %}
{%- endblock %} {%- endblock %}

@ -551,11 +551,11 @@ msgid ""
"cache\n" "cache\n"
" expires." " expires."
msgstr "" msgstr ""
"Jeśli nie wiesz, jak skonfigurować rekord <code> MX </code> dla swojej " "Jeśli nie wiesz, jak skonfigurować rekord <code> MX </code> dla swojej "
"strefy DNS,\n" "strefy DNS,\n"
"skontaktuj się z dostawcą DNS lub administratorem. Proszę również " "skontaktuj się z dostawcą DNS lub administratorem. Proszę również "
"poczekać\n" "poczekać\n"
"kilka minut po ustawieniu <code> MX </code> , żeby pamięć podręczna " "kilka minut po ustawieniu <code> MX </code>, żeby pamięć podręczna "
"serwera lokalnego wygasła." "serwera lokalnego wygasła."
#: mailu/ui/templates/fetch/create.html:4 #: mailu/ui/templates/fetch/create.html:4

@ -58,7 +58,7 @@
<form class="form" method="post" role="form"> <form class="form" method="post" role="form">
{{ form.hidden_tag() }} {{ form.hidden_tag() }}
{%- for field in form %} {%- for field in form %}
{%- if bootstrap_is_hidden_field(field) %} {%- if bootstrap_is_hidden_field(field) %}
{{ field() }} {{ field() }}
{%- else %} {%- else %}
{{ form_field(field) }} {{ form_field(field) }}

@ -37,7 +37,7 @@ def run_migrations_offline():
This configures the context with just a URL This configures the context with just a URL
and not an Engine, though an Engine is acceptable and not an Engine, though an Engine is acceptable
here as well. By skipping the Engine creation here as well. By skipping the Engine creation
we don't even need a DBAPI to be available. we don't even need a DBAPI to be available.
Calls to context.execute() here emit the given string to the Calls to context.execute() here emit the given string to the

@ -6,7 +6,7 @@ import multiprocessing
import logging as log import logging as log
import sys import sys
from podop import run_server from podop import run_server
from socrate import system, conf from socrate import system, conf
log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "WARNING")) log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "WARNING"))

@ -7,7 +7,7 @@ import multiprocessing
import logging as log import logging as log
import sys import sys
from podop import run_server from podop import run_server
from pwd import getpwnam from pwd import getpwnam
from socrate import system, conf from socrate import system, conf

Loading…
Cancel
Save