public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/web/templates/admin/tab-config-quarantine.twig
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
<div class="tab-pane fade" id="tab-config-quarantine" role="tabpanel" aria-labelledby="tab-config-quarantine">
2
<div class="card mb-4">
3
<div class="card-header d-flex fs-5">
4
<button class="btn d-md-none flex-grow-1 text-start" data-bs-target="#collapse-tab-config-quarantine" data-bs-toggle="collapse" aria-controls="collapse-tab-config-quarantine">
5
{{ lang.admin.quarantine }}
6
</button>
7
<span class="d-none d-md-block">{{ lang.admin.quarantine }}</span>
8
</div>
9
<div id="collapse-tab-config-quarantine" class="card-body collapse" data-bs-parent="#admin-content">
10
{% if not q_data.retention_size or not q_data.max_size %}
11
<div class="alert alert-info">{{ lang.quarantine.disabled_by_config }}</div>
12
{% endif %}
13
<form class="form-horizontal" data-id="quarantine" role="form" method="post">
14
<div class="row mb-4">
15
<label class="col-sm-4 control-label text-sm-end" for="quarantine_retention_size">{{ lang.admin.quarantine_retention_size|raw }}</label>
16
<div class="col-sm-8">
17
<input type="number" class="form-control" id="quarantine_retention_size" name="retention_size" value="{{ q_data.retention_size }}" placeholder="0" required>
18
</div>
19
</div>
20
<div class="row mb-4">
21
<label class="col-sm-4 control-label text-sm-end" for="quarantine_max_size">{{ lang.admin.quarantine_max_size|raw }}</label>
22
<div class="col-sm-8">
23
<input type="number" class="form-control" id="quarantine_max_size" name="max_size" value="{{ q_data.max_size }}" placeholder="0" required>
24
</div>
25
</div>
26
<div class="row mb-4">
27
<label class="col-sm-4 control-label text-sm-end" for="quarantine_max_score">{{ lang.admin.quarantine_max_score|raw }}</label>
28
<div class="col-sm-8">
29
<input type="number" class="form-control" id="quarantine_max_score" name="max_score" value="{{ q_data.max_score }}" placeholder="9999.0">
30
</div>
31
</div>
32
<div class="row mb-4">
33
<label class="col-sm-4 control-label text-sm-end" for="quarantine_max_age">{{ lang.admin.quarantine_max_age|raw }}</label>
34
<div class="col-sm-8">
35
<input type="number" class="form-control" id="quarantine_max_age" name="max_age" value="{{ q_data.max_age }}" min="1" required>
36
</div>
37
</div>
38
<hr>
39
<div class="row mb-4">
40
<label class="col-sm-4 control-label text-sm-end" for="quarantine_redirect"><i class="bi bi-box-arrow-right"></i> {{ lang.admin.quarantine_redirect|raw }}</label>
41
<div class="col-sm-8">
42
<input type="email" class="form-control" id="quarantine_redirect" name="redirect" value="{{ q_data.redirect }}" placeholder="">
43
</div>
44
</div>
45
<div class="row mb-4">
46
<label class="col-sm-4 control-label text-sm-end" for="quarantine_bcc"><i class="bi bi-files"></i> {{ lang.admin.quarantine_bcc|raw }}</label>
47
<div class="col-sm-8">
48
<input type="email" class="form-control" id="quarantine_bcc" name="bcc" value="{{ q_data.bcc }}" placeholder="">
49
</div>
50
</div>
51
<hr>
52
<div class="row mb-2">
53
<label class="col-sm-4 control-label text-sm-end" for="quarantine_sender">{{ lang.admin.quarantine_notification_sender }}:</label>
54
<div class="col-sm-8">
55
<input type="email" class="form-control" id="quarantine_sender" name="sender" value="{{ q_data.sender }}" placeholder="quarantine@localhost">
56
</div>
57
</div>
58
<div class="row mb-4">
59
<label class="col-sm-4 control-label text-sm-end" for="quarantine_subject">{{ lang.admin.quarantine_notification_subject }}:</label>
60
<div class="col-sm-8">
61
<input type="text" class="form-control" id="quarantine_subject" name="subject" value="{{ q_data.subject }}" placeholder="Spam Quarantine Notification">
62
</div>
63
</div>
64
<hr>
65
<div class="row mb-2">
66
<label class="col-sm-4 control-label text-sm-end" for="quarantine_release_format">{{ lang.admin.quarantine_release_format }}:</label>
67
<div class="col-sm-8 col-md-6 col-lg-4 col-xl-3">
68
<select data-width="100%" id="quarantine_release_format" name="release_format" class="selectpicker" title="{{ lang.tfa.select }}">
69
<option {% if q_data.release_format == 'raw' %}selected{% endif %} value="raw">{{ lang.admin.quarantine_release_format_raw }}</option>
70
<option {% if q_data.release_format == 'attachment' %}selected{% endif %} value="attachment">{{ lang.admin.quarantine_release_format_att }}</option>
71
</select>
72
</div>
73
</div>
74
<div class="row mb-4">
75
<label class="col-sm-4 control-label text-sm-end" for="exclude_domains">{{ lang.admin.quarantine_exclude_domains }}:</label>
76
<div class="col-sm-8 col-md-6 col-lg-4 col-xl-3">
77
<select data-width="100%" name="exclude_domains" class="selectpicker" title="{{ lang.tfa.select }}" multiple>
78
{% for domain in all_domains %}
79
<option {% if domain in q_data.exclude_domains %}selected{% endif %}>{{ domain }}</option>
80
{% endfor %}
81
</select>
82
</div>
83
</div>
84
<hr>
85
<legend data-bs-target="#quarantine_template" style="cursor:pointer" unselectable="on" data-bs-toggle="collapse">
86
<i style="font-size:10pt;" class="bi bi-plus-square"></i> {{ lang.admin.quarantine_notification_html|raw }}
87
</legend>
88
<hr />
89
<div id="quarantine_template" class="collapse" >
90
<textarea autocorrect="off" spellcheck="false" autocapitalize="none" class="form-control textarea-code" rows="40" name="html_tmpl">{{ q_data.html_tmpl|raw }}</textarea>
91
</div>
92
<button class="btn btn-sm d-block d-sm-inline btn-success" data-action="edit_selected" data-item="self" data-id="quarantine" data-api-url='edit/quarantine' data-api-attr='{"action":"settings"}' href="#"><i class="bi bi-check-lg"></i> {{ lang.admin.save }}</button>
93
</form>
94
</div>
95
</div>
96
</div>