Commit Graph

46 Commits

Author SHA1 Message Date
muppeth 2ebd090d6c
uncoupled web frontend (lacre-webgate) from gpg-lacre; moved cron.py from frontend to backend dir and changed name (webgate-cron.py); 2022-10-12 16:29:09 +02:00
Piotr F. Mieszkowski 92f3cedc51 Remove leftover .read() call 2022-05-14 11:26:49 +02:00
Piotr F. Mieszkowski 11b78ce0fb Adjust log entry levels for severe conditions
When Lacre is misconfigured or can't proceed, report WARNING or even ERROR
level messages.
2022-05-13 21:27:50 +02:00
Piotr F. Mieszkowski acdb2dd5c8 Log cron-job inner workings 2022-05-11 19:57:26 +02:00
Piotr F. Mieszkowski 617a208fe9 Fix indentation and names after rebase 2022-05-06 20:25:22 +02:00
Piotr F. Mieszkowski af5a5b4176 Use Lacre logging and configuration in cron.py 2022-05-06 20:13:19 +02:00
Piotr F. Mieszkowski 52b31028c5 Fix config key typo 2022-04-24 10:07:52 +02:00
Piotr F. Mieszkowski ffc53b935a Finish migration to SQLAlchemy and automate testing cron.py 2022-04-23 13:08:40 +02:00
Piotr F. Mieszkowski 7aff414fb7 Use SQLAlchemy to access database
- Replace hardcoded MySQLdb package with sqlalchemy to support other RDBMS
backends.

- Provide a script that could eventually replace schema.sql (schema.py).

- Update sample configuration.
2022-04-23 09:39:20 +02:00
muppeth 86b725349f
added smtp auth to cron.py 2022-04-20 13:01:58 +02:00
Piotr F. Mieszkowski ea0e012c04 Use 'open' to open a file 2022-04-19 21:35:22 +02:00
Piotr F. Mieszkowski 5a34249090 Fix minor cron.py issues
Related to #63: TypeError: memoryview: a bytes-like object is required, not
'str'.

- Allow GnuPG.add_key accept either 'str' or 'bytes'.
- Import MIMEText from email.mime.text.
2022-04-10 19:03:18 +02:00
muppeth c4e9e3e840 compatibility update for php7/8 (#61)
Co-authored-by: muppeth <muppeth@disroot.org>
Reviewed-on: #61
2022-03-23 10:05:11 +00:00
Piotr F. Mieszkowski 5f02223ec7 Perform automatic migration to Python 3.x
Use lib2to3 automatic migration tool provided by Python 2.x to convert
codebase to new idioms.

Command line:

find . -type f -name '*.py' \
    -exec python2.7 -m lib2to3 \
    -f all -f idioms -f buffer -f set_literal -f ws_comma -w \
    '{}' '+'
2022-01-10 18:21:20 +01:00
fkrone 9cfbd24bdc All mails from cron script are now passed through the GPG-Mailgate so they are encrypted if possible. 2015-06-04 20:13:04 +02:00
fkrone d3bbb82072 Make the SMTP relay used by cron configurable via config. Use the same as the gateway does. 2015-03-28 19:41:40 +01:00
fkrone efe2187bb5 Logging for cron job does now work to syslog if defined so in the config file (previously it thought it should write to a file called 'syslog' instead of the real syslog) 2015-03-28 19:23:49 +01:00
fkrone f7e3b16069 Changes to cron, register-handler, settings and templates:
- Cron now notifies user what happened (key successfully added/deleted or error)
- More options to customize templates
- Separating concepts in settings (S/MIME, templates)
- Register-handler now only informs on failed PGP submissions (reduce mails to user and false positive mails)
2015-01-31 16:08:12 +01:00
fkrone fd1b7517db Informing user about key submitting status. Needs some rework. 2015-01-18 17:04:12 +01:00
kflux 7eaf03def4 Update index.php 2014-03-02 14:12:09 +01:00
kflux 9dcaceb3bd Update README 2014-02-26 01:52:07 +01:00
kflux 19aaa0bbc2 Update README 2014-02-24 21:26:31 +01:00
kflux 51920451ed Update and rename README.MD to README 2014-02-24 21:22:17 +01:00
kflux cef4445b2d Update and rename README to README.MD 2014-02-24 21:21:57 +01:00
kflux c4daaaeb5d Update phphkp.php 2014-02-24 21:17:21 +01:00
kflux cbbe63d700 Update README 2014-02-24 21:16:05 +01:00
kflux 8a701f6f17 Update index.php 2014-02-24 21:13:45 +01:00
kflux 663f9f3191 Update README 2014-02-24 21:12:52 +01:00
kflux 3ddb512639 Update README
added HKP server functionality installation instructions
2014-02-24 21:11:07 +01:00
kflux 7f9baa4aa2 Create phphkp.php
initial commit
2014-02-24 20:54:44 +01:00
perennate fbe2f1bba1 Update license to GNU GPL v3. 2013-10-02 14:27:28 -04:00
perennate 4ba9aa5c98 Add language support. 2013-09-28 17:38:18 -04:00
perennate c9f2e2f721 Clarify to public users on gpg-mailgate-web home page. 2013-09-28 17:21:02 -04:00
perennate a753d9ebca Update gpg-mailgate-web footer now that it is merged in. 2013-09-28 17:14:14 -04:00
perennate 4af9c605cd Update gpg-mailgate-web readme. 2013-09-28 17:07:10 -04:00
perennate aaa647d489 Add license and link to updates for gpg-mailgate-web. 2013-09-28 17:03:41 -04:00
perennate e01e505374 Release under GNU Lesser General Public License. 2013-09-27 22:21:55 -04:00
perennate e48970bca9 Add default configuration file.
The local config.php will overwrite default configuration file. If config.php does not exist the system will display a server configuration error.
2013-09-27 22:09:32 -04:00
perennate 808bb632fc Clarify dependencies for mail_smtp. 2013-09-27 21:58:58 -04:00
perennate e12f0f1d52 Add optional PGP key verification on web server side. 2013-09-27 21:57:07 -04:00
perennate bcebd12269 Fix for case where user wants to disable encryption with blank key. 2013-09-27 21:52:11 -04:00
perennate ef71194c7c Update README (different mail/web server is ok). 2013-09-27 21:11:50 -04:00
perennate 2965e804a9 Separate theme into footer / header / main. 2013-09-27 21:00:37 -04:00
perennate 5e4f352bf1 Fix bug in confirmation of emails. 2013-09-27 20:59:44 -04:00
perennate 39875522ef Add index.html to prevent directory listing of include directory. 2013-09-27 09:00:19 -04:00
perennate 98b4e341cf Initial commit for gpg-mailgate-web addition. 2013-09-26 19:40:27 -04:00