1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-03 00:07:05 +00:00

Add copyright to source files

This commit is contained in:
downtownallday 2022-09-19 14:45:11 -04:00
parent 809a75765e
commit bf63ca827e
198 changed files with 1783 additions and 1 deletions

9
Vagrantfile vendored
View File

@ -1,4 +1,13 @@
# -*- mode: ruby -*- # -*- mode: ruby -*-
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# vi: set ft=ruby : # vi: set ft=ruby :
Vagrant.configure("2") do |config| Vagrant.configure("2") do |config|

View File

@ -1,4 +1,13 @@
#!/usr/bin/env sh #!/usr/bin/env sh
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# Requirements: # Requirements:
# - Node.js # - Node.js

View File

@ -1,4 +1,13 @@
#!/bin/bash #!/bin/bash
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# #
# save a list of commits as markdown for a given tag or for a tag # save a list of commits as markdown for a given tag or for a tag

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# #
# MiaB-LDAP's directory schema for time-based one time passwords (TOTP) # MiaB-LDAP's directory schema for time-based one time passwords (TOTP)
# #

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# #
# Auxiliary objectclass to add named properties to an entry # Auxiliary objectclass to add named properties to an entry
# #

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# LDAP Admin Extensions for Postfix MTA support # LDAP Admin Extensions for Postfix MTA support
# #
# MiaB LDAP UUID(v4): 7392cdda-5ec8-431f-9936-0000273c0167 # MiaB LDAP UUID(v4): 7392cdda-5ec8-431f-9936-0000273c0167

View File

@ -1,4 +1,13 @@
#!/bin/bash #!/bin/bash
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
source "ehdd/ehdd_funcs.sh" || exit 1 source "ehdd/ehdd_funcs.sh" || exit 1

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
if [ -s /etc/mailinabox.conf ]; then if [ -s /etc/mailinabox.conf ]; then
source /etc/mailinabox.conf source /etc/mailinabox.conf

View File

@ -1,4 +1,13 @@
#!/bin/bash #!/bin/bash
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
. "ehdd/ehdd_funcs.sh" || exit 1 . "ehdd/ehdd_funcs.sh" || exit 1

View File

@ -1,4 +1,13 @@
#!/bin/bash #!/bin/bash
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
. "ehdd/ehdd_funcs.sh" || exit 1 . "ehdd/ehdd_funcs.sh" || exit 1

View File

@ -1,4 +1,13 @@
#!/bin/bash #!/bin/bash
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
ehdd/mount.sh || exit 1 ehdd/mount.sh || exit 1
if [ -s /etc/mailinabox.conf ]; then if [ -s /etc/mailinabox.conf ]; then

View File

@ -1,4 +1,13 @@
#!/bin/bash #!/bin/bash
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
if [ -s /etc/mailinabox.conf ]; then if [ -s /etc/mailinabox.conf ]; then
systemctl stop mailinabox systemctl stop mailinabox
systemctl stop nginx systemctl stop nginx

View File

@ -1,4 +1,13 @@
#!/bin/bash #!/bin/bash
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
EHDD_IMG="$(ehdd/create_hdd.sh -location)" EHDD_IMG="$(ehdd/create_hdd.sh -location)"
[ -e /etc/mailinabox.conf ] && . /etc/mailinabox.conf [ -e /etc/mailinabox.conf ] && . /etc/mailinabox.conf

View File

@ -1,4 +1,13 @@
#!/bin/bash #!/bin/bash
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
. "ehdd/ehdd_funcs.sh" || exit 1 . "ehdd/ehdd_funcs.sh" || exit 1

View File

@ -1,4 +1,13 @@
# -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*- # -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*-
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import base64, os, os.path, hmac, json, secrets import base64, os, os.path, hmac, json, secrets
from datetime import timedelta from datetime import timedelta

View File

@ -1,5 +1,14 @@
#!/usr/local/lib/mailinabox/env/bin/python #!/usr/local/lib/mailinabox/env/bin/python
# -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*- # -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*-
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import ldap3, time import ldap3, time

View File

@ -1,5 +1,14 @@
#!/usr/local/lib/mailinabox/env/bin/python #!/usr/local/lib/mailinabox/env/bin/python
# -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*- # -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*-
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# This script performs a backup of all user data: # This script performs a backup of all user data:
# 1) System services are stopped. # 1) System services are stopped.

View File

@ -1,4 +1,13 @@
#!/usr/bin/python3 #!/usr/bin/python3
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# #
# This is a command-line script for calling management APIs # This is a command-line script for calling management APIs
# on the Mail-in-a-Box control panel backend. The script # on the Mail-in-a-Box control panel backend. The script

View File

@ -1,4 +1,13 @@
#!/usr/local/lib/mailinabox/env/bin/python3 #!/usr/local/lib/mailinabox/env/bin/python3
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# #
# The API can be accessed on the command line, e.g. use `curl` like so: # The API can be accessed on the command line, e.g. use `curl` like so:
# curl --user $(</var/lib/mailinabox/api.key): http://localhost:10222/mail/users # curl --user $(</var/lib/mailinabox/api.key): http://localhost:10222/mail/users

View File

@ -1,4 +1,13 @@
# -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*- # -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*-
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import logging import logging
import flask import flask

View File

@ -1,4 +1,13 @@
# -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*- # -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*-
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import os import os
import logging import logging

View File

@ -1,4 +1,13 @@
# -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*- # -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*-
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import os import os
import logging import logging

View File

@ -1,4 +1,13 @@
#!/bin/bash #!/bin/bash
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# This script is run daily (at 3am each night). # This script is run daily (at 3am each night).
# Set character encoding flags to ensure that any non-ASCII # Set character encoding flags to ensure that any non-ASCII

View File

@ -1,4 +1,13 @@
#!/usr/local/lib/mailinabox/env/bin/python #!/usr/local/lib/mailinabox/env/bin/python
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# Creates DNS zone files for all of the domains of all of the mail users # Creates DNS zone files for all of the domains of all of the mail users
# and mail aliases and restarts nsd. # and mail aliases and restarts nsd.

View File

@ -1,4 +1,13 @@
#!/usr/local/lib/mailinabox/env/bin/python #!/usr/local/lib/mailinabox/env/bin/python
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# Reads in STDIN. If the stream is not empty, mail it to the system administrator. # Reads in STDIN. If the stream is not empty, mail it to the system administrator.

View File

@ -1,4 +1,13 @@
#!/usr/local/lib/mailinabox/env/bin/python #!/usr/local/lib/mailinabox/env/bin/python
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import argparse import argparse
import datetime import datetime
import gzip import gzip

View File

@ -1,5 +1,14 @@
#!/usr/local/lib/mailinabox/env/bin/python #!/usr/local/lib/mailinabox/env/bin/python
# -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*- # -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*-
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# NOTE: # NOTE:
# This script is run both using the system-wide Python 3 # This script is run both using the system-wide Python 3

View File

@ -1,4 +1,13 @@
# -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*- # -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*-
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
from mailconfig import open_database, find_mail_user from mailconfig import open_database, find_mail_user
import mfa_totp import mfa_totp

View File

@ -1,4 +1,13 @@
# -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*- # -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*-
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import base64 import base64
import hmac import hmac
import pyotp import pyotp

View File

@ -1,2 +1,11 @@
#!/bin/bash #!/bin/bash
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
mkdir -p /var/run/munin && chown munin /var/run/munin mkdir -p /var/run/munin && chown munin /var/run/munin

View File

@ -1,4 +1,13 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
from logs.TailFile import TailFile from logs.TailFile import TailFile
from mail.PostfixLogHandler import PostfixLogHandler from mail.PostfixLogHandler import PostfixLogHandler
from mail.DovecotLogHandler import DovecotLogHandler from mail.DovecotLogHandler import DovecotLogHandler

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
class DatabaseConnectionFactory(object): class DatabaseConnectionFactory(object):
def connect(self): def connect(self):

View File

@ -1,4 +1,13 @@
# -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*- # -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*-
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import threading import threading
import queue import queue

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
class Prunable(object): class Prunable(object):

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import threading import threading
import logging import logging

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import os, stat import os, stat
import sqlite3 import sqlite3
import logging import logging

View File

@ -1,4 +1,13 @@
# -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*- # -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*-
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import sqlite3 import sqlite3
import os, stat import os, stat

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import datetime import datetime
import pytz import pytz

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
'''subclass this and override methods to handle log output''' '''subclass this and override methods to handle log output'''
class ReadLineHandler(object): class ReadLineHandler(object):

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
'''subclass this and override all methods to persist the position of '''subclass this and override all methods to persist the position of
the log file that has been processed so far. the log file that has been processed so far.

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
from .ReadPositionStore import ReadPositionStore from .ReadPositionStore import ReadPositionStore
import threading import threading

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import threading import threading
import os import os
import logging import logging

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import logging import logging
import re import re
import datetime import datetime

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import logging import logging
import re import re
import datetime import datetime

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import logging import logging
import re import re
import datetime import datetime

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
class PostfixLogParser(object): class PostfixLogParser(object):

View File

@ -1,4 +1,13 @@
#!/bin/bash #!/bin/bash
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# load a mail.log file into the current test vm's capture.sqlite # load a mail.log file into the current test vm's capture.sqlite
# #

View File

@ -1,4 +1,13 @@
#!/bin/bash #!/bin/bash
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# #
# interactively load a mail.log file and create a capture.sqlite # interactively load a mail.log file and create a capture.sqlite

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
class DictQuery(object): class DictQuery(object):

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
def load_env_vars_from_file(fn): def load_env_vars_from_file(fn):
# Load settings from a KEY=VALUE file. # Load settings from a KEY=VALUE file.
env = {} env = {}

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
def safe_int(str, default_value=0): def safe_int(str, default_value=0):
try: try:
return int(str) return int(str)

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
import { BvTable, ConnectionDisposition, DateFormatter } from "./charting.js"; import { BvTable, ConnectionDisposition, DateFormatter } from "./charting.js";
import { spinner } from "../../ui-common/page-header.js"; import { spinner } from "../../ui-common/page-header.js";

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
import { ChartPrefs, NumberFormatter, ChartVue } from "./charting.js"; import { ChartPrefs, NumberFormatter, ChartVue } from "./charting.js";
export default Vue.component('chart-multi-line-timeseries', { export default Vue.component('chart-multi-line-timeseries', {

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
import { ChartPrefs, NumberFormatter, ChartVue } from "./charting.js"; import { ChartPrefs, NumberFormatter, ChartVue } from "./charting.js";

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
/* /*
stacked bar chart stacked bar chart
*/ */

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
export default Vue.component('chart-table', { export default Vue.component('chart-table', {
props: { props: {
items: Array, items: Array,

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
export class ChartPrefs { export class ChartPrefs {
static get colors() { static get colors() {

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
import { DateRange, DateFormatter } from "./charting.js"; import { DateRange, DateFormatter } from "./charting.js";

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
/* /*
* reports index page * reports index page
*/ */

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
import { spinner } from "../../ui-common/page-header.js"; import { spinner } from "../../ui-common/page-header.js";
export default Vue.component('message-headers-view', { export default Vue.component('message-headers-view', {

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
import page_layout from '../../ui-common/page-layout.js'; import page_layout from '../../ui-common/page-layout.js';
import reports_page_header from './reports-page-header.js'; import reports_page_header from './reports-page-header.js';
import date_range_picker from './date-range-picker.js'; import date_range_picker from './date-range-picker.js';

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
import page_layout from '../../ui-common/page-layout.js'; import page_layout from '../../ui-common/page-layout.js';
import reports_page_header from './reports-page-header.js'; import reports_page_header from './reports-page-header.js';

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
import chart_multi_line_timeseries from "./chart-multi-line-timeseries.js"; import chart_multi_line_timeseries from "./chart-multi-line-timeseries.js";
import chart_stacked_bar_timeseries from "./chart-stacked-bar-timeseries.js"; import chart_stacked_bar_timeseries from "./chart-stacked-bar-timeseries.js";

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
/* /*
set of charts/tables showing messages received from internet servers set of charts/tables showing messages received from internet servers

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
/* /*
set of charts/tables showing messages sent by local users set of charts/tables showing messages sent by local users
- number of messages sent over time - number of messages sent over time

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
/* /*
details on the activity of a remote sender (envelope from) details on the activity of a remote sender (envelope from)
*/ */

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
/* /*
details on the activity of a user details on the activity of a user
*/ */

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
import page_header from '../../ui-common/page-header.js'; import page_header from '../../ui-common/page-header.js';
export default Vue.component('reports-page-header', { export default Vue.component('reports-page-header', {

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
import { ValueError } from '../../ui-common/exceptions.js'; import { ValueError } from '../../ui-common/exceptions.js';

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
/* /*
* This component adds <wbr> elements after all characters given by * This component adds <wbr> elements after all characters given by
* `break_chars` in the given text. * `break_chars` in the given text.

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import datetime import datetime
import threading import threading

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import datetime import datetime
import bisect import bisect

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
from .exceptions import (InvalidArgsError) from .exceptions import (InvalidArgsError)
from .select_list_suggestions import select_list_suggestions from .select_list_suggestions import select_list_suggestions
from .messages_sent import messages_sent from .messages_sent import messages_sent

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import datetime import datetime
from .DictCache import DictCache from .DictCache import DictCache

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
class MiabLdapError(Exception): class MiabLdapError(Exception):
pass pass

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import logging import logging
from .Timeseries import Timeseries from .Timeseries import Timeseries
from .exceptions import InvalidArgsError from .exceptions import InvalidArgsError

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
from .Timeseries import Timeseries from .Timeseries import Timeseries
from .exceptions import InvalidArgsError from .exceptions import InvalidArgsError

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
from .Timeseries import Timeseries from .Timeseries import Timeseries
from .exceptions import InvalidArgsError from .exceptions import InvalidArgsError
from .top import select_top from .top import select_top

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
from .Timeseries import Timeseries from .Timeseries import Timeseries
from .exceptions import InvalidArgsError from .exceptions import InvalidArgsError

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
from .Timeseries import Timeseries from .Timeseries import Timeseries
from .exceptions import InvalidArgsError from .exceptions import InvalidArgsError

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
from .Timeseries import Timeseries from .Timeseries import Timeseries
from .exceptions import InvalidArgsError from .exceptions import InvalidArgsError
import logging import logging

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
def select_top(c, select, start, end, y, fields, field_types): def select_top(c, select, start, end, y, fields, field_types):
'''`c` is a cursor '''`c` is a cursor

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
from .Timeseries import Timeseries from .Timeseries import Timeseries
from .exceptions import InvalidArgsError from .exceptions import InvalidArgsError

View File

@ -1,4 +1,13 @@
#!/usr/local/lib/mailinabox/env/bin/python #!/usr/local/lib/mailinabox/env/bin/python
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# Utilities for installing and selecting SSL certificates. # Utilities for installing and selecting SSL certificates.
import os, os.path, re, shutil, subprocess, tempfile import os, os.path, re, shutil, subprocess, tempfile

View File

@ -1,4 +1,13 @@
#!/usr/local/lib/mailinabox/env/bin/python #!/usr/local/lib/mailinabox/env/bin/python
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# #
# Checks that the upstream DNS has been set correctly and that # Checks that the upstream DNS has been set correctly and that
# TLS certificates have been signed, etc., and if not tells the user # TLS certificates have been signed, etc., and if not tells the user

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
import { AuthenticationError } from './exceptions.js'; import { AuthenticationError } from './exceptions.js';

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
export class ValueError extends Error { export class ValueError extends Error {
constructor(msg) { constructor(msg) {
super(msg); super(msg);

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
var spinner = Vue.component('spinner', { var spinner = Vue.component('spinner', {
template: '<span class="spinner-border spinner-border-sm"></span>' template: '<span class="spinner-border spinner-border-sm"></span>'
}); });

View File

@ -1,3 +1,12 @@
/////
///// This file is part of Mail-in-a-Box-LDAP which is released under the
///// terms of the GNU Affero General Public License as published by the
///// Free Software Foundation, either version 3 of the License, or (at
///// your option) any later version. See file LICENSE or go to
///// https://github.com/downtownallday/mailinabox-ldap for full license
///// details.
/////
export default Vue.component('page-layout', function(resolve, reject) { export default Vue.component('page-layout', function(resolve, reject) {
axios.get('ui-common/page-layout.html').then((response) => { resolve({ axios.get('ui-common/page-layout.html').then((response) => { resolve({

View File

@ -1,4 +1,13 @@
#!/bin/bash #!/bin/bash
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# #
# install bootstrap sources # install bootstrap sources

View File

@ -1,4 +1,13 @@
# -*- indent-tabs-mode: nil; -*- # -*- indent-tabs-mode: nil; -*-
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
import os.path, collections import os.path, collections
# DO NOT import non-standard modules. This module is imported by # DO NOT import non-standard modules. This module is imported by

View File

@ -1,4 +1,13 @@
# -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*- # -*- indent-tabs-mode: t; tab-width: 4; python-indent-offset: 4; -*-
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# Creates an nginx configuration file so we serve HTTP/HTTPS on all # Creates an nginx configuration file so we serve HTTP/HTTPS on all
# domains for which a mail account has been set up. # domains for which a mail account has been set up.
######################################################################## ########################################################################

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
from daemon import app from daemon import app
import auth, utils import auth, utils

View File

@ -1,5 +1,14 @@
#!/bin/bash #!/bin/bash
######################################################### #########################################################
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# This script is intended to be run like this: # This script is intended to be run like this:
# #
# curl https://mailinabox.email/setup.sh | sudo bash # curl https://mailinabox.email/setup.sh | sudo bash

View File

@ -1,4 +1,13 @@
#!/bin/bash #!/bin/bash
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# OpenDKIM # OpenDKIM
# -------- # --------
# #

View File

@ -1,4 +1,13 @@
#!/bin/bash #!/bin/bash
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# DNS # DNS
# ----------------------------------------------- # -----------------------------------------------

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# If there aren't any mail users yet, create one. # If there aren't any mail users yet, create one.
if [ -z "$(management/cli.py user)" ]; then if [ -z "$(management/cli.py user)" ]; then
# The outut of "management/cli.py user" is a list of mail users. If there # The outut of "management/cli.py user" is a list of mail users. If there

View File

@ -1,3 +1,12 @@
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
verify_file_sha1sum() { verify_file_sha1sum() {
local FILE="$1" local FILE="$1"
local HASH="$2" local HASH="$2"

View File

@ -1,4 +1,13 @@
# -*- indent-tabs-mode: t; tab-width: 4; -*- # -*- indent-tabs-mode: t; tab-width: 4; -*-
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# #
# some helpful ldap function that are shared between setup/ldap.sh and # some helpful ldap function that are shared between setup/ldap.sh and
# test suites in tests/suites/* # test suites in tests/suites/*

View File

@ -1,4 +1,13 @@
# -*- indent-tabs-mode: t; tab-width: 4; -*- # -*- indent-tabs-mode: t; tab-width: 4; -*-
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
# Turn on "strict mode." See http://redsymbol.net/articles/unofficial-bash-strict-mode/. # Turn on "strict mode." See http://redsymbol.net/articles/unofficial-bash-strict-mode/.
# -e: exit if any command unexpectedly fails. # -e: exit if any command unexpectedly fails.
# -u: exit if we have a variable typo. # -u: exit if we have a variable typo.

Some files were not shown because too many files have changed in this diff Show More