From bf63ca827e959b1e8299be63d01ded3a93af534e Mon Sep 17 00:00:00 2001 From: downtownallday Date: Mon, 19 Sep 2022 14:45:11 -0400 Subject: [PATCH] Add copyright to source files --- Vagrantfile | 9 +++++++++ api/docs/generate-docs.sh | 9 +++++++++ changelog/gen.sh | 9 +++++++++ conf/schema/mfa-totp.schema | 9 +++++++++ conf/schema/namedProperties.schema | 9 +++++++++ conf/schema/postfix.schema | 9 +++++++++ ehdd/create_hdd.sh | 9 +++++++++ ehdd/ehdd_funcs.sh | 9 +++++++++ ehdd/mount.sh | 9 +++++++++ ehdd/postinstall.sh | 9 +++++++++ ehdd/run-this-after-reboot.sh | 9 +++++++++ ehdd/shutdown.sh | 9 +++++++++ ehdd/start-encrypted.sh | 9 +++++++++ ehdd/umount.sh | 9 +++++++++ management/auth.py | 9 +++++++++ management/backend.py | 9 +++++++++ management/backup.py | 9 +++++++++ management/cli.py | 9 +++++++++ management/daemon.py | 9 +++++++++ management/daemon_logger.py | 9 +++++++++ management/daemon_reports.py | 9 +++++++++ management/daemon_ui_common.py | 9 +++++++++ management/daily_tasks.sh | 9 +++++++++ management/dns_update.py | 9 +++++++++ management/email_administrator.py | 9 +++++++++ management/mail_log.py | 9 +++++++++ management/mailconfig.py | 9 +++++++++ management/mfa.py | 9 +++++++++ management/mfa_totp.py | 9 +++++++++ management/munin_start.sh | 9 +++++++++ management/reporting/capture/capture.py | 9 +++++++++ .../reporting/capture/db/DatabaseConnectionFactory.py | 9 +++++++++ management/reporting/capture/db/EventStore.py | 9 +++++++++ management/reporting/capture/db/Prunable.py | 9 +++++++++ management/reporting/capture/db/Pruner.py | 9 +++++++++ management/reporting/capture/db/SqliteConnFactory.py | 9 +++++++++ management/reporting/capture/db/SqliteEventStore.py | 9 +++++++++ management/reporting/capture/logs/DateParser.py | 9 +++++++++ management/reporting/capture/logs/ReadLineHandler.py | 9 +++++++++ .../reporting/capture/logs/ReadPositionStore.py | 9 +++++++++ .../reporting/capture/logs/ReadPositionStoreInFile.py | 9 +++++++++ management/reporting/capture/logs/TailFile.py | 9 +++++++++ management/reporting/capture/mail/CommonHandler.py | 9 +++++++++ .../reporting/capture/mail/DovecotLogHandler.py | 9 +++++++++ .../reporting/capture/mail/PostfixLogHandler.py | 9 +++++++++ management/reporting/capture/mail/PostfixLogParser.py | 9 +++++++++ management/reporting/capture/tests/load.sh | 9 +++++++++ management/reporting/capture/tests/run.sh | 9 +++++++++ management/reporting/capture/util/DictQuery.py | 9 +++++++++ management/reporting/capture/util/env.py | 9 +++++++++ management/reporting/capture/util/safe.py | 9 +++++++++ management/reporting/ui/capture-db-stats.js | 9 +++++++++ .../reporting/ui/chart-multi-line-timeseries.js | 9 +++++++++ management/reporting/ui/chart-pie.js | 9 +++++++++ .../reporting/ui/chart-stacked-bar-timeseries.js | 9 +++++++++ management/reporting/ui/chart-table.js | 9 +++++++++ management/reporting/ui/charting.js | 9 +++++++++ management/reporting/ui/date-range-picker.js | 9 +++++++++ management/reporting/ui/index.js | 9 +++++++++ management/reporting/ui/message_headers_view.js | 9 +++++++++ management/reporting/ui/page-reports-main.js | 9 +++++++++ management/reporting/ui/page-settings.js | 9 +++++++++ management/reporting/ui/panel-flagged-connections.js | 9 +++++++++ management/reporting/ui/panel-messages-received.js | 9 +++++++++ management/reporting/ui/panel-messages-sent.js | 9 +++++++++ .../reporting/ui/panel-remote-sender-activity.js | 9 +++++++++ management/reporting/ui/panel-user-activity.js | 9 +++++++++ management/reporting/ui/reports-page-header.js | 9 +++++++++ management/reporting/ui/settings.js | 9 +++++++++ management/reporting/ui/wbr-text.js | 9 +++++++++ management/reporting/uidata/DictCache.py | 9 +++++++++ management/reporting/uidata/Timeseries.py | 9 +++++++++ management/reporting/uidata/__init__.py | 9 +++++++++ management/reporting/uidata/capture_db_stats.py | 9 +++++++++ management/reporting/uidata/exceptions.py | 9 +++++++++ management/reporting/uidata/flagged_connections.py | 9 +++++++++ management/reporting/uidata/imap_details.py | 9 +++++++++ management/reporting/uidata/messages_received.py | 9 +++++++++ management/reporting/uidata/messages_sent.py | 9 +++++++++ management/reporting/uidata/remote_sender_activity.py | 9 +++++++++ .../reporting/uidata/select_list_suggestions.py | 9 +++++++++ management/reporting/uidata/top.py | 9 +++++++++ management/reporting/uidata/user_activity.py | 9 +++++++++ management/ssl_certificates.py | 9 +++++++++ management/status_checks.py | 9 +++++++++ management/ui-common/authentication.js | 9 +++++++++ management/ui-common/exceptions.js | 9 +++++++++ management/ui-common/page-header.js | 9 +++++++++ management/ui-common/page-layout.js | 9 +++++++++ management/ui-common/theme/build.sh | 9 +++++++++ management/utils.py | 9 +++++++++ management/web_update.py | 9 +++++++++ management/wsgi.py | 9 +++++++++ setup/bootstrap.sh | 9 +++++++++ setup/dkim.sh | 9 +++++++++ setup/dns.sh | 9 +++++++++ setup/firstuser.sh | 9 +++++++++ setup/functions-downloads.sh | 9 +++++++++ setup/functions-ldap.sh | 9 +++++++++ setup/functions.sh | 9 +++++++++ setup/ldap.sh | 9 +++++++++ setup/mail-dovecot.sh | 9 +++++++++ setup/mail-postfix.sh | 9 +++++++++ setup/mail-users.sh | 9 +++++++++ setup/management-capture.sh | 9 +++++++++ setup/management.sh | 9 +++++++++ setup/migrate.py | 9 +++++++++ setup/migration_13.py | 9 +++++++++ setup/migration_14.py | 9 +++++++++ setup/mods.available/connect-nextcloud-to-miab.sh | 9 +++++++++ setup/mods.available/coturn.sh | 9 +++++++++ setup/mods.available/rcmcarddav-composer.sh | 9 +++++++++ setup/mods.available/remote-nextcloud.sh | 9 +++++++++ setup/mods.available/roundcube-debug.sh | 9 +++++++++ setup/mods.available/roundcube-master.sh | 9 +++++++++ setup/mods.available/unattended-upgrades-mail.sh | 9 +++++++++ setup/munin.sh | 9 +++++++++ setup/network-checks.sh | 9 +++++++++ setup/nextcloud.sh | 9 +++++++++ setup/preflight.sh | 9 +++++++++ setup/questions.sh | 9 +++++++++ setup/spamassassin.sh | 9 +++++++++ setup/ssl.sh | 9 +++++++++ setup/start.sh | 9 +++++++++ setup/system.sh | 9 +++++++++ setup/web.sh | 9 +++++++++ setup/webmail.sh | 9 +++++++++ setup/zpush.sh | 9 +++++++++ tests/assets/mail/roundcube/carddav_refresh.sh | 9 +++++++++ tests/assets/mail/roundcube/carddav_refresh_v3.sh | 9 +++++++++ tests/bin/m-debug.sh | 9 +++++++++ tests/bin/restore_backup.sh | 9 +++++++++ tests/fail2ban.py | 9 +++++++++ tests/lib/all.sh | 9 +++++++++ tests/lib/carddav.sh | 9 +++++++++ tests/lib/color-output.sh | 9 +++++++++ tests/lib/installed-state.sh | 9 +++++++++ tests/lib/locations.sh | 9 +++++++++ tests/lib/misc.sh | 9 +++++++++ tests/lib/populate.sh | 9 +++++++++ tests/lib/rest.sh | 9 +++++++++ tests/lib/system.sh | 9 +++++++++ tests/lib/totp.sh | 9 +++++++++ tests/lib/totp_cli.sh | 9 +++++++++ tests/runner.sh | 9 +++++++++ tests/suites/_init.sh | 9 +++++++++ tests/suites/_init_miabldap.sh | 9 +++++++++ tests/suites/_ldap-functions.sh | 9 +++++++++ tests/suites/_mail-functions.sh | 9 +++++++++ tests/suites/_mgmt-functions.sh | 9 +++++++++ tests/suites/_zpush-functions.sh | 9 +++++++++ tests/suites/ehdd.sh | 9 +++++++++ tests/suites/ldap-access.sh | 9 +++++++++ tests/suites/ldap-connection.sh | 9 +++++++++ tests/suites/mail-access.sh | 9 +++++++++ tests/suites/mail-aliases.sh | 9 +++++++++ tests/suites/mail-basic.sh | 9 +++++++++ tests/suites/mail-from.sh | 9 +++++++++ tests/suites/management-users.sh | 9 +++++++++ tests/suites/remote-nextcloud.sh | 9 +++++++++ tests/suites/upgrade.sh | 9 +++++++++ tests/suites/z-push.sh | 9 +++++++++ tests/system-setup/from-backup.sh | 9 +++++++++ tests/system-setup/populate/basic-data.sh | 9 +++++++++ tests/system-setup/populate/basic-populate.sh | 9 +++++++++ tests/system-setup/populate/basic-verify.sh | 9 +++++++++ tests/system-setup/populate/totpuser-data.sh | 9 +++++++++ tests/system-setup/populate/totpuser-populate.sh | 9 +++++++++ tests/system-setup/populate/totpuser-verify.sh | 9 +++++++++ tests/system-setup/remote-nextcloud-docker.sh | 9 +++++++++ tests/system-setup/setup-defaults.sh | 9 +++++++++ tests/system-setup/setup-funcs.sh | 9 +++++++++ tests/system-setup/upgrade-from-upstream.sh | 9 +++++++++ tests/system-setup/upgrade.sh | 9 +++++++++ tests/system-setup/vanilla.sh | 9 +++++++++ tests/test_dns.py | 9 +++++++++ tests/test_mail.py | 9 +++++++++ tests/test_smtp_server.py | 9 +++++++++ tests/tls.py | 9 +++++++++ tests/vagrant/Vagrantfile | 9 +++++++++ tests/vagrant/funcs.rb | 9 +++++++++ tests/vagrant/majorupgrade/Vagrantfile | 11 ++++++++++- tests/vagrant/majorupgrade/majorupgrade.sh | 9 +++++++++ tests/vagrant/parallel.sh | 9 +++++++++ tests/vagrant/preloaded/Vagrantfile | 9 +++++++++ tests/vagrant/preloaded/create_preloaded.sh | 9 +++++++++ tests/vagrant/preloaded/prepvm.sh | 9 +++++++++ tests/vagrant/vanilla/Vagrantfile | 9 +++++++++ tools/archive_conf_files.sh | 9 +++++++++ tools/dns_update | 9 +++++++++ tools/editconf.php | 9 +++++++++ tools/editconf.py | 9 +++++++++ tools/mail.py | 9 +++++++++ tools/owncloud-restore.sh | 9 +++++++++ tools/owncloud-unlockadmin.sh | 9 +++++++++ tools/parse-nginx-log-bootstrap-accesses.py | 9 +++++++++ tools/readable_bash.py | 9 +++++++++ tools/web_update | 9 +++++++++ 198 files changed, 1783 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 757c2ec9..771f7e27 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,4 +1,13 @@ # -*- 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 : Vagrant.configure("2") do |config| diff --git a/api/docs/generate-docs.sh b/api/docs/generate-docs.sh index e7951d8a..e674a898 100755 --- a/api/docs/generate-docs.sh +++ b/api/docs/generate-docs.sh @@ -1,4 +1,13 @@ #!/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: # - Node.js diff --git a/changelog/gen.sh b/changelog/gen.sh index 784317a5..66d1b96b 100755 --- a/changelog/gen.sh +++ b/changelog/gen.sh @@ -1,4 +1,13 @@ #!/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 diff --git a/conf/schema/mfa-totp.schema b/conf/schema/mfa-totp.schema index bf8ca35b..5357613c 100644 --- a/conf/schema/mfa-totp.schema +++ b/conf/schema/mfa-totp.schema @@ -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) # diff --git a/conf/schema/namedProperties.schema b/conf/schema/namedProperties.schema index 9f146e32..e1c53a06 100644 --- a/conf/schema/namedProperties.schema +++ b/conf/schema/namedProperties.schema @@ -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 # diff --git a/conf/schema/postfix.schema b/conf/schema/postfix.schema index 0f4c99f8..8056998e 100644 --- a/conf/schema/postfix.schema +++ b/conf/schema/postfix.schema @@ -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 # # MiaB LDAP UUID(v4): 7392cdda-5ec8-431f-9936-0000273c0167 diff --git a/ehdd/create_hdd.sh b/ehdd/create_hdd.sh index 34088869..5ed43988 100755 --- a/ehdd/create_hdd.sh +++ b/ehdd/create_hdd.sh @@ -1,4 +1,13 @@ #!/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 diff --git a/ehdd/ehdd_funcs.sh b/ehdd/ehdd_funcs.sh index 5c4a82f5..123d0001 100644 --- a/ehdd/ehdd_funcs.sh +++ b/ehdd/ehdd_funcs.sh @@ -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 source /etc/mailinabox.conf diff --git a/ehdd/mount.sh b/ehdd/mount.sh index 37233f4e..5ff44270 100755 --- a/ehdd/mount.sh +++ b/ehdd/mount.sh @@ -1,4 +1,13 @@ #!/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 diff --git a/ehdd/postinstall.sh b/ehdd/postinstall.sh index 944b8c55..0bae580b 100755 --- a/ehdd/postinstall.sh +++ b/ehdd/postinstall.sh @@ -1,4 +1,13 @@ #!/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 diff --git a/ehdd/run-this-after-reboot.sh b/ehdd/run-this-after-reboot.sh index 897c7dae..bccfa4b4 100755 --- a/ehdd/run-this-after-reboot.sh +++ b/ehdd/run-this-after-reboot.sh @@ -1,4 +1,13 @@ #!/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 if [ -s /etc/mailinabox.conf ]; then diff --git a/ehdd/shutdown.sh b/ehdd/shutdown.sh index c51cff5d..c2204f39 100755 --- a/ehdd/shutdown.sh +++ b/ehdd/shutdown.sh @@ -1,4 +1,13 @@ #!/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 systemctl stop mailinabox systemctl stop nginx diff --git a/ehdd/start-encrypted.sh b/ehdd/start-encrypted.sh index fc3fc4d2..5492fc6b 100755 --- a/ehdd/start-encrypted.sh +++ b/ehdd/start-encrypted.sh @@ -1,4 +1,13 @@ #!/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)" [ -e /etc/mailinabox.conf ] && . /etc/mailinabox.conf diff --git a/ehdd/umount.sh b/ehdd/umount.sh index b9ffc442..3d1a3602 100755 --- a/ehdd/umount.sh +++ b/ehdd/umount.sh @@ -1,4 +1,13 @@ #!/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 diff --git a/management/auth.py b/management/auth.py index 81e6c816..38ae26bd 100644 --- a/management/auth.py +++ b/management/auth.py @@ -1,4 +1,13 @@ # -*- 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 from datetime import timedelta diff --git a/management/backend.py b/management/backend.py index 05edd73c..73083cc0 100644 --- a/management/backend.py +++ b/management/backend.py @@ -1,5 +1,14 @@ #!/usr/local/lib/mailinabox/env/bin/python # -*- 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 diff --git a/management/backup.py b/management/backup.py index 8d48cf95..ce8683b8 100755 --- a/management/backup.py +++ b/management/backup.py @@ -1,5 +1,14 @@ #!/usr/local/lib/mailinabox/env/bin/python # -*- 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: # 1) System services are stopped. diff --git a/management/cli.py b/management/cli.py index 1b91b003..6fc221fe 100755 --- a/management/cli.py +++ b/management/cli.py @@ -1,4 +1,13 @@ #!/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 # on the Mail-in-a-Box control panel backend. The script diff --git a/management/daemon.py b/management/daemon.py index 3e3a4fbb..900771b1 100755 --- a/management/daemon.py +++ b/management/daemon.py @@ -1,4 +1,13 @@ #!/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: # curl --user $( elements after all characters given by * `break_chars` in the given text. diff --git a/management/reporting/uidata/DictCache.py b/management/reporting/uidata/DictCache.py index 0952792e..a57b99f4 100644 --- a/management/reporting/uidata/DictCache.py +++ b/management/reporting/uidata/DictCache.py @@ -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 threading diff --git a/management/reporting/uidata/Timeseries.py b/management/reporting/uidata/Timeseries.py index b2e91259..104152f8 100644 --- a/management/reporting/uidata/Timeseries.py +++ b/management/reporting/uidata/Timeseries.py @@ -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 bisect diff --git a/management/reporting/uidata/__init__.py b/management/reporting/uidata/__init__.py index ac3f9829..302274cc 100644 --- a/management/reporting/uidata/__init__.py +++ b/management/reporting/uidata/__init__.py @@ -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 .select_list_suggestions import select_list_suggestions from .messages_sent import messages_sent diff --git a/management/reporting/uidata/capture_db_stats.py b/management/reporting/uidata/capture_db_stats.py index 76b28345..7d4d436e 100644 --- a/management/reporting/uidata/capture_db_stats.py +++ b/management/reporting/uidata/capture_db_stats.py @@ -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 from .DictCache import DictCache diff --git a/management/reporting/uidata/exceptions.py b/management/reporting/uidata/exceptions.py index b2288348..132aec75 100644 --- a/management/reporting/uidata/exceptions.py +++ b/management/reporting/uidata/exceptions.py @@ -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): pass diff --git a/management/reporting/uidata/flagged_connections.py b/management/reporting/uidata/flagged_connections.py index cf147491..45741a9c 100644 --- a/management/reporting/uidata/flagged_connections.py +++ b/management/reporting/uidata/flagged_connections.py @@ -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 from .Timeseries import Timeseries from .exceptions import InvalidArgsError diff --git a/management/reporting/uidata/imap_details.py b/management/reporting/uidata/imap_details.py index 36d18d9c..fa671cf4 100644 --- a/management/reporting/uidata/imap_details.py +++ b/management/reporting/uidata/imap_details.py @@ -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 .exceptions import InvalidArgsError diff --git a/management/reporting/uidata/messages_received.py b/management/reporting/uidata/messages_received.py index da01761b..318bd435 100644 --- a/management/reporting/uidata/messages_received.py +++ b/management/reporting/uidata/messages_received.py @@ -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 .exceptions import InvalidArgsError from .top import select_top diff --git a/management/reporting/uidata/messages_sent.py b/management/reporting/uidata/messages_sent.py index 8a3c039b..a6195364 100644 --- a/management/reporting/uidata/messages_sent.py +++ b/management/reporting/uidata/messages_sent.py @@ -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 .exceptions import InvalidArgsError diff --git a/management/reporting/uidata/remote_sender_activity.py b/management/reporting/uidata/remote_sender_activity.py index f5f061ab..5d484a54 100644 --- a/management/reporting/uidata/remote_sender_activity.py +++ b/management/reporting/uidata/remote_sender_activity.py @@ -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 .exceptions import InvalidArgsError diff --git a/management/reporting/uidata/select_list_suggestions.py b/management/reporting/uidata/select_list_suggestions.py index 3b53a099..1b85c2fd 100644 --- a/management/reporting/uidata/select_list_suggestions.py +++ b/management/reporting/uidata/select_list_suggestions.py @@ -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 .exceptions import InvalidArgsError import logging diff --git a/management/reporting/uidata/top.py b/management/reporting/uidata/top.py index a3cab34b..24360ae9 100644 --- a/management/reporting/uidata/top.py +++ b/management/reporting/uidata/top.py @@ -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): '''`c` is a cursor diff --git a/management/reporting/uidata/user_activity.py b/management/reporting/uidata/user_activity.py index 1a7ca62f..c02fb6a3 100644 --- a/management/reporting/uidata/user_activity.py +++ b/management/reporting/uidata/user_activity.py @@ -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 .exceptions import InvalidArgsError diff --git a/management/ssl_certificates.py b/management/ssl_certificates.py index 0b64a2c3..8e09c292 100755 --- a/management/ssl_certificates.py +++ b/management/ssl_certificates.py @@ -1,4 +1,13 @@ #!/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. import os, os.path, re, shutil, subprocess, tempfile diff --git a/management/status_checks.py b/management/status_checks.py index 9f4bee08..ce769dca 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -1,4 +1,13 @@ #!/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 # TLS certificates have been signed, etc., and if not tells the user diff --git a/management/ui-common/authentication.js b/management/ui-common/authentication.js index c479666d..618e1c81 100644 --- a/management/ui-common/authentication.js +++ b/management/ui-common/authentication.js @@ -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'; diff --git a/management/ui-common/exceptions.js b/management/ui-common/exceptions.js index c4396c73..9a414ad5 100644 --- a/management/ui-common/exceptions.js +++ b/management/ui-common/exceptions.js @@ -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 { constructor(msg) { super(msg); diff --git a/management/ui-common/page-header.js b/management/ui-common/page-header.js index a1b9a19e..ed4347f8 100644 --- a/management/ui-common/page-header.js +++ b/management/ui-common/page-header.js @@ -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', { template: '' }); diff --git a/management/ui-common/page-layout.js b/management/ui-common/page-layout.js index 974edc97..596d51ce 100644 --- a/management/ui-common/page-layout.js +++ b/management/ui-common/page-layout.js @@ -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) { axios.get('ui-common/page-layout.html').then((response) => { resolve({ diff --git a/management/ui-common/theme/build.sh b/management/ui-common/theme/build.sh index ed6c17d3..33bc8b20 100755 --- a/management/ui-common/theme/build.sh +++ b/management/ui-common/theme/build.sh @@ -1,4 +1,13 @@ #!/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 diff --git a/management/utils.py b/management/utils.py index 683c08e9..0248b5c2 100644 --- a/management/utils.py +++ b/management/utils.py @@ -1,4 +1,13 @@ # -*- 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 # DO NOT import non-standard modules. This module is imported by diff --git a/management/web_update.py b/management/web_update.py index 88850440..671f489e 100644 --- a/management/web_update.py +++ b/management/web_update.py @@ -1,4 +1,13 @@ # -*- 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 # domains for which a mail account has been set up. ######################################################################## diff --git a/management/wsgi.py b/management/wsgi.py index 86cf3af4..1f5d8d32 100644 --- a/management/wsgi.py +++ b/management/wsgi.py @@ -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 import auth, utils diff --git a/setup/bootstrap.sh b/setup/bootstrap.sh index 74d6dd20..2c69965e 100644 --- a/setup/bootstrap.sh +++ b/setup/bootstrap.sh @@ -1,5 +1,14 @@ #!/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: # # curl https://mailinabox.email/setup.sh | sudo bash diff --git a/setup/dkim.sh b/setup/dkim.sh index 9def5240..44cb2450 100755 --- a/setup/dkim.sh +++ b/setup/dkim.sh @@ -1,4 +1,13 @@ #!/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 # -------- # diff --git a/setup/dns.sh b/setup/dns.sh index 0bdece6d..a6fe7dd9 100755 --- a/setup/dns.sh +++ b/setup/dns.sh @@ -1,4 +1,13 @@ #!/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 # ----------------------------------------------- diff --git a/setup/firstuser.sh b/setup/firstuser.sh index 7caec35d..87379874 100644 --- a/setup/firstuser.sh +++ b/setup/firstuser.sh @@ -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 [ -z "$(management/cli.py user)" ]; then # The outut of "management/cli.py user" is a list of mail users. If there diff --git a/setup/functions-downloads.sh b/setup/functions-downloads.sh index 8fb504cb..03ec172e 100644 --- a/setup/functions-downloads.sh +++ b/setup/functions-downloads.sh @@ -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() { local FILE="$1" local HASH="$2" diff --git a/setup/functions-ldap.sh b/setup/functions-ldap.sh index e6c0cbd9..870f34d4 100644 --- a/setup/functions-ldap.sh +++ b/setup/functions-ldap.sh @@ -1,4 +1,13 @@ # -*- 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 # test suites in tests/suites/* diff --git a/setup/functions.sh b/setup/functions.sh index d7ce3f2d..c1ce6023 100644 --- a/setup/functions.sh +++ b/setup/functions.sh @@ -1,4 +1,13 @@ # -*- 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/. # -e: exit if any command unexpectedly fails. # -u: exit if we have a variable typo. diff --git a/setup/ldap.sh b/setup/ldap.sh index 29c67256..26887443 100755 --- a/setup/ldap.sh +++ b/setup/ldap.sh @@ -1,5 +1,14 @@ #!/bin/bash # -*- 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. +##### + # # LDAP server (slapd) for user authentication and directory services diff --git a/setup/mail-dovecot.sh b/setup/mail-dovecot.sh index 0f272b4a..10a1f67f 100755 --- a/setup/mail-dovecot.sh +++ b/setup/mail-dovecot.sh @@ -1,4 +1,13 @@ #!/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. +##### + # # Dovecot (IMAP/POP and LDA) # ---------------------- diff --git a/setup/mail-postfix.sh b/setup/mail-postfix.sh index 75194893..cedefc04 100755 --- a/setup/mail-postfix.sh +++ b/setup/mail-postfix.sh @@ -1,4 +1,13 @@ #!/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. +##### + # # Postfix (SMTP) # -------------- diff --git a/setup/mail-users.sh b/setup/mail-users.sh index d6a08e01..a92dd2bd 100755 --- a/setup/mail-users.sh +++ b/setup/mail-users.sh @@ -1,4 +1,13 @@ #!/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. +##### + # # User Authentication and Destination Validation # ---------------------------------------------- diff --git a/setup/management-capture.sh b/setup/management-capture.sh index e4780335..35b3fc2e 100755 --- a/setup/management-capture.sh +++ b/setup/management-capture.sh @@ -1,4 +1,13 @@ #!/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 setup/functions.sh source /etc/mailinabox.conf # load global vars diff --git a/setup/management.sh b/setup/management.sh index 7c9a8647..15f4edf2 100755 --- a/setup/management.sh +++ b/setup/management.sh @@ -1,4 +1,13 @@ #!/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 setup/functions.sh source /etc/mailinabox.conf # load global vars diff --git a/setup/migrate.py b/setup/migrate.py index a2f75483..645c1051 100755 --- a/setup/migrate.py +++ b/setup/migrate.py @@ -1,5 +1,14 @@ #!/usr/bin/python3 # -*- indent-tabs-mode: t; tab-width: 8; python-indent-offset: 8; -*- +##### +##### 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. +##### + # Migrates any file structures, database schemas, etc. between versions of Mail-in-a-Box. diff --git a/setup/migration_13.py b/setup/migration_13.py index cf98eb8a..d1a49436 100644 --- a/setup/migration_13.py +++ b/setup/migration_13.py @@ -1,5 +1,14 @@ #!/usr/bin/python3 # -*- 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. +##### + # # helper functions for migration #13 diff --git a/setup/migration_14.py b/setup/migration_14.py index f78ef235..f76100d8 100644 --- a/setup/migration_14.py +++ b/setup/migration_14.py @@ -1,5 +1,14 @@ #!/usr/bin/python3 # -*- 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. +##### + # # helper functions for migration #14 / miabldap-migration #2 diff --git a/setup/mods.available/connect-nextcloud-to-miab.sh b/setup/mods.available/connect-nextcloud-to-miab.sh index e73e8806..56ce45f0 100755 --- a/setup/mods.available/connect-nextcloud-to-miab.sh +++ b/setup/mods.available/connect-nextcloud-to-miab.sh @@ -1,4 +1,13 @@ #!/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. +##### + # # Run this script on your remote Nextcloud to configure it to use diff --git a/setup/mods.available/coturn.sh b/setup/mods.available/coturn.sh index 8818ff98..d0ed00e4 100755 --- a/setup/mods.available/coturn.sh +++ b/setup/mods.available/coturn.sh @@ -1,5 +1,14 @@ #!/bin/bash # -*- 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. +##### + # This mod is part of the Mail-In-A-Box LDAP and Cloud-In-A-Box # projects diff --git a/setup/mods.available/rcmcarddav-composer.sh b/setup/mods.available/rcmcarddav-composer.sh index dda159f4..a286b8ac 100755 --- a/setup/mods.available/rcmcarddav-composer.sh +++ b/setup/mods.available/rcmcarddav-composer.sh @@ -1,4 +1,13 @@ #!/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 mod will run composer on rcmcarddav to update its dependencies diff --git a/setup/mods.available/remote-nextcloud.sh b/setup/mods.available/remote-nextcloud.sh index cade37c3..426d6815 100755 --- a/setup/mods.available/remote-nextcloud.sh +++ b/setup/mods.available/remote-nextcloud.sh @@ -1,4 +1,13 @@ #!/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 setup/functions.sh # load our functions source /etc/mailinabox.conf # load global vars diff --git a/setup/mods.available/roundcube-debug.sh b/setup/mods.available/roundcube-debug.sh index 6bea6c43..3a5a73f9 100755 --- a/setup/mods.available/roundcube-debug.sh +++ b/setup/mods.available/roundcube-debug.sh @@ -1,4 +1,13 @@ #!/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 mod will enable roundcube debugging output. output goes diff --git a/setup/mods.available/roundcube-master.sh b/setup/mods.available/roundcube-master.sh index fc9febc5..8d2112ee 100755 --- a/setup/mods.available/roundcube-master.sh +++ b/setup/mods.available/roundcube-master.sh @@ -1,4 +1,13 @@ #!/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 mod will install the latest master branch version of roundcube diff --git a/setup/mods.available/unattended-upgrades-mail.sh b/setup/mods.available/unattended-upgrades-mail.sh index b3c4da5c..2f28d21c 100755 --- a/setup/mods.available/unattended-upgrades-mail.sh +++ b/setup/mods.available/unattended-upgrades-mail.sh @@ -1,4 +1,13 @@ #!/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. +##### + # Created by: downtownallday diff --git a/setup/munin.sh b/setup/munin.sh index 79974dc6..64c5b15e 100755 --- a/setup/munin.sh +++ b/setup/munin.sh @@ -1,4 +1,13 @@ #!/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. +##### + # Munin: resource monitoring tool ################################################# [ "${FEATURE_MUNIN:-true}" == "false" ] && return 0 diff --git a/setup/network-checks.sh b/setup/network-checks.sh index 428fa4ca..5e1f173b 100644 --- a/setup/network-checks.sh +++ b/setup/network-checks.sh @@ -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. +##### + # Install the 'host', 'sed', and and 'nc' tools. This script is run before # the rest of the system setup so we may not yet have things installed. apt_get_quiet install bind9-host sed netcat-openbsd diff --git a/setup/nextcloud.sh b/setup/nextcloud.sh index 5f2ceff3..82679bb1 100755 --- a/setup/nextcloud.sh +++ b/setup/nextcloud.sh @@ -1,4 +1,13 @@ #!/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. +##### + # Nextcloud ########################## if [ "${FEATURE_NEXTCLOUD:-true}" == "false" ]; then diff --git a/setup/preflight.sh b/setup/preflight.sh index e921f298..5d2dd7fc 100644 --- a/setup/preflight.sh +++ b/setup/preflight.sh @@ -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. +##### + # Are we running as root? if [[ $EUID -ne 0 ]]; then echo "This script must be run as root. Please re-run like this:" diff --git a/setup/questions.sh b/setup/questions.sh index ea0ed5c0..c4e3ba65 100644 --- a/setup/questions.sh +++ b/setup/questions.sh @@ -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 [ -z "${NONINTERACTIVE:-}" ]; then # Install 'dialog' so we can ask the user questions. The original motivation for # this was being able to ask the user for input even if stdin has been redirected, diff --git a/setup/spamassassin.sh b/setup/spamassassin.sh index 2f8c1a6b..ba409cb7 100755 --- a/setup/spamassassin.sh +++ b/setup/spamassassin.sh @@ -1,4 +1,13 @@ #!/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. +##### + # Spam filtering with spamassassin via spampd # ------------------------------------------- # diff --git a/setup/ssl.sh b/setup/ssl.sh index cb1528ad..79fb7f41 100755 --- a/setup/ssl.sh +++ b/setup/ssl.sh @@ -1,4 +1,13 @@ #!/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. +##### + # # RSA private key, SSL certificate, Diffie-Hellman bits files # ------------------------------------------- diff --git a/setup/start.sh b/setup/start.sh index f03dc9d7..677bc069 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -1,4 +1,13 @@ #!/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 is the entry point for configuring the system. ##################################################### diff --git a/setup/system.sh b/setup/system.sh index 98a3fb8a..4c868fb6 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -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. +##### + source /etc/mailinabox.conf source setup/functions.sh # load our functions diff --git a/setup/web.sh b/setup/web.sh index 392b6d92..7a61fa3c 100755 --- a/setup/web.sh +++ b/setup/web.sh @@ -1,4 +1,13 @@ #!/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. +##### + # HTTP: Turn on a web server serving static files ################################################# diff --git a/setup/webmail.sh b/setup/webmail.sh index fdcdba6b..c56f4629 100755 --- a/setup/webmail.sh +++ b/setup/webmail.sh @@ -1,4 +1,13 @@ #!/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. +##### + # Webmail with Roundcube # ---------------------- diff --git a/setup/zpush.sh b/setup/zpush.sh index 00ded8eb..33a0a6cf 100755 --- a/setup/zpush.sh +++ b/setup/zpush.sh @@ -1,4 +1,13 @@ #!/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. +##### + # # Z-Push: The Microsoft Exchange protocol server # ---------------------------------------------- diff --git a/tests/assets/mail/roundcube/carddav_refresh.sh b/tests/assets/mail/roundcube/carddav_refresh.sh index c26a1f4e..2349ed3a 100755 --- a/tests/assets/mail/roundcube/carddav_refresh.sh +++ b/tests/assets/mail/roundcube/carddav_refresh.sh @@ -1,5 +1,14 @@ #!/usr/bin/env php ubuntu-bionic64 if File.file?("#{preloaded_dir}/preloaded/preloaded-#{_name}.box") diff --git a/tests/vagrant/majorupgrade/Vagrantfile b/tests/vagrant/majorupgrade/Vagrantfile index bee9319e..bf9ac9b0 100644 --- a/tests/vagrant/majorupgrade/Vagrantfile +++ b/tests/vagrant/majorupgrade/Vagrantfile @@ -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. +##### + load '../funcs.rb' # major upgrade Ubuntu 18.04 (bionic) -> Ubuntu 22.04 (jammy) @@ -32,7 +41,7 @@ SH m2.vm.provision :shell, :inline => <<-SH cd /mailinabox export PRIMARY_HOSTNAME=majorupgrade.local -export FEATURE_MUNIN=false +export FEATURE_MUNIN=true tests/system-setup/from-backup.sh \ "#{ENV['storage_user']}" \ "#{ENV['duplicity_files']}" \ diff --git a/tests/vagrant/majorupgrade/majorupgrade.sh b/tests/vagrant/majorupgrade/majorupgrade.sh index b7ecc9a5..83ab5fd8 100755 --- a/tests/vagrant/majorupgrade/majorupgrade.sh +++ b/tests/vagrant/majorupgrade/majorupgrade.sh @@ -1,4 +1,13 @@ #!/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. +##### + # run from this script's directory cd $(dirname "$0") diff --git a/tests/vagrant/parallel.sh b/tests/vagrant/parallel.sh index 719b8f2e..98fb0c15 100755 --- a/tests/vagrant/parallel.sh +++ b/tests/vagrant/parallel.sh @@ -1,4 +1,13 @@ #!/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. +##### + # Parallel provisioning for virtualbox because "The Vagrant VirtualBox # provider does not support parallel execution at this time" diff --git a/tests/vagrant/preloaded/Vagrantfile b/tests/vagrant/preloaded/Vagrantfile index 62d31053..24dc6e64 100644 --- a/tests/vagrant/preloaded/Vagrantfile +++ b/tests/vagrant/preloaded/Vagrantfile @@ -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 checkout_tag_and_mount(obj, tag) if "#{tag}" == "" obj.vm.synced_folder "../../..", "/mailinabox", id: "mailinabox", automount: false diff --git a/tests/vagrant/preloaded/create_preloaded.sh b/tests/vagrant/preloaded/create_preloaded.sh index 73ef2960..707165ef 100755 --- a/tests/vagrant/preloaded/create_preloaded.sh +++ b/tests/vagrant/preloaded/create_preloaded.sh @@ -1,4 +1,13 @@ #!/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 defaults for MIABLDAP_GIT and FINAL_RELEASE_TAG_BIONIC64 (make available to Vagrantfile) pushd "../../.." >/dev/null diff --git a/tests/vagrant/preloaded/prepvm.sh b/tests/vagrant/preloaded/prepvm.sh index 0003bd69..77879211 100755 --- a/tests/vagrant/preloaded/prepvm.sh +++ b/tests/vagrant/preloaded/prepvm.sh @@ -1,4 +1,13 @@ #!/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. +##### + # Run this on a VM to pre-install all the packages, then # take a snapshot - it will greatly speed up subsequent diff --git a/tests/vagrant/vanilla/Vagrantfile b/tests/vagrant/vanilla/Vagrantfile index a4ad6e86..062ce542 100644 --- a/tests/vagrant/vanilla/Vagrantfile +++ b/tests/vagrant/vanilla/Vagrantfile @@ -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. +##### + load '../funcs.rb' Vagrant.configure("2") do |config| diff --git a/tools/archive_conf_files.sh b/tools/archive_conf_files.sh index 28b6b24f..67aa91d2 100644 --- a/tools/archive_conf_files.sh +++ b/tools/archive_conf_files.sh @@ -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. +##### + # Use this script to make an archive of the contents of all # of the configuration files we edit with editconf.py. for fn in `grep -hr editconf.py setup | sed "s/tools\/editconf.py //" | sed "s/ .*//" | sort | uniq`; do diff --git a/tools/dns_update b/tools/dns_update index 947c3dd1..3dda3f6b 100755 --- a/tools/dns_update +++ b/tools/dns_update @@ -1,4 +1,13 @@ #!/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. +##### + POSTDATA=dummy if [ "$1" == "--force" ]; then POSTDATA=force=1 diff --git a/tools/editconf.php b/tools/editconf.php index 6d661ee3..43c2af33 100644 --- a/tools/editconf.php +++ b/tools/editconf.php @@ -1,4 +1,13 @@