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)
@ -69,15 +76,18 @@ if cfg.has_key('database') and cfg['database'].has_key('enabled') and cfg['datab
GnuPG.add_key(cfg['gpg']['keyhome'],row[0])# import the key to gpg
cursor.execute("UPDATE gpgmw_keys SET status = 1 WHERE id = %s",(row[1],))# mark key as accepted
appendLog('Imported key from <'+row[2]+'>')
send_msg("PGP key registration successful","Your PGP key has been imported successfully. Don't be worried if this mail is not encrypted. The following mails will be encrypted.",row[2])