Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
9210ebdb
Commit
9210ebdb
authored
Oct 07, 2014
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control panel tweaks
parent
a56bb984
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
mail_log.py
management/mail_log.py
+3
-2
custom-dns.html
management/templates/custom-dns.html
+4
-2
index.html
management/templates/index.html
+5
-6
No files found.
management/mail_log.py
View file @
9210ebdb
...
...
@@ -42,8 +42,9 @@ def scan_mail_log(logger, env):
for
date
,
sender
,
message
in
collector
[
"rejected-mail"
][
k
]:
logger
.
print_line
(
k
+
"
\t
"
+
str
(
date
)
+
"
\t
"
+
sender
+
"
\t
"
+
message
)
logger
.
add_heading
(
"Other"
)
logger
.
print_block
(
"Unrecognized services in the log: "
+
", "
.
join
(
collector
[
"other-services"
]))
if
len
(
collector
[
"other-services"
])
>
0
:
logger
.
add_heading
(
"Other"
)
logger
.
print_block
(
"Unrecognized services in the log: "
+
", "
.
join
(
collector
[
"other-services"
]))
def
scan_mail_log_line
(
line
,
collector
):
m
=
re
.
match
(
r"(\S+ \d+ \d+:\d+:\d+) (\S+) (\S+?)(\[\d+\])?: (.*)"
,
line
)
...
...
management/templates/custom-dns.html
View file @
9210ebdb
...
...
@@ -23,9 +23,9 @@
<button
type=
"submit"
class=
"btn btn-primary"
>
Update
</button>
</div>
</div>
<div
class=
"form-group
"
>
<div
id=
"secondarydns-clear-instructions"
class=
"form-group"
style=
"display: none
"
>
<div
class=
"col-sm-offset-1 col-sm-11"
>
<p
class=
"small"
>
Clear the
box to use the box
itself as secondary DNS, which is the default/normal setup.
</p>
<p
class=
"small"
>
Clear the
input field above and click Update to use this machine
itself as secondary DNS, which is the default/normal setup.
</p>
</div>
</div>
</form>
...
...
@@ -76,6 +76,7 @@ function show_custom_dns() {
{
},
function
(
data
)
{
$
(
'
#secondarydnsHostname
'
).
val
(
data
.
hostname
?
data
.
hostname
:
''
);
$
(
'
#secondarydns-clear-instructions
'
).
toggle
(
data
.
hostname
!=
null
);
});
}
...
...
@@ -89,6 +90,7 @@ function do_set_secondary_dns() {
function
(
data
)
{
if
(
data
==
""
)
return
;
// nothing updated
show_modal_error
(
"
Secondary DNS
"
,
$
(
"
<pre/>
"
).
text
(
data
));
$
(
'
#secondarydns-clear-instructions
'
).
slideDown
();
},
function
(
err
)
{
show_modal_error
(
"
Secondary DNS
"
,
$
(
"
<pre/>
"
).
text
(
err
));
...
...
management/templates/index.html
View file @
9210ebdb
...
...
@@ -81,7 +81,7 @@
</div>
<div
class=
"navbar-collapse collapse"
>
<ul
class=
"nav navbar-nav"
>
<li
class=
"dropdown
active
"
>
<li
class=
"dropdown"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
System
<b
class=
"caret"
></b></a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#system_status"
onclick=
"return show_panel(this);"
>
Status Checks
</a></li>
...
...
@@ -92,16 +92,15 @@
<li><a
href=
"#external_dns"
onclick=
"return show_panel(this);"
>
External DNS
</a></li>
</ul>
</li>
<li
class=
"dropdown
active
"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
Mail
/Sync
<b
class=
"caret"
></b></a>
<li
class=
"dropdown"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
Mail
<b
class=
"caret"
></b></a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#mail-guide"
onclick=
"return show_panel(this);"
>
Mail Instructions
</a></li>
<li><a
href=
"#sync_guide"
onclick=
"return show_panel(this);"
>
Contacts/Calendar
</a></li>
<li
class=
"divider"
></li>
<li><a
href=
"#mail-guide"
onclick=
"return show_panel(this);"
>
Instructions
</a></li>
<li><a
href=
"#users"
onclick=
"return show_panel(this);"
>
Users
</a></li>
<li><a
href=
"#aliases"
onclick=
"return show_panel(this);"
>
Aliases
</a></li>
</ul>
</li>
<li><a
href=
"#sync_guide"
onclick=
"return show_panel(this);"
>
Contacts/Calendar
</a></li>
</ul>
<ul
class=
"nav navbar-nav navbar-right"
>
<li><a
href=
"#"
onclick=
"do_logout(); return false;"
style=
"color: white"
>
Log out?
</a></li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment