python-smtp-gpg-proxy
python-smtp-gpg-proxy copied to clipboard
A SMTP proxy for automatically encrypting and signing eMails using GPG
As signing / encryption of HTML mails does not work very well, they should be converted to plain text.
Possible options could be: ``` ENC_NONE # Never encrypt ENC_SUB # Encrypt based on subject ENC_OPP # Encrypt opportunistically ENC_SUB_OPP # Encrypt based on subject and opportunistically ENC_ALWAYS # Always...
At the moment, a bad password will lead to a crash: ` error: uncaptured python exception, closing channel (:global name 'socket' is not defined [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|449] [/usr/lib/python2.7/asynchat.py|handle_read|158] [/usr/local/lib/python2.7/dist-packages/secure_smtpd-1.1.9-py2.7.egg/secure_smtpd/smtp_channel.py|found_terminator|123] [smtp-gpg-proxy.py|process_message|195] [/usr/local/lib/python2.7/dist-packages/secure_smtpd-1.1.9-py2.7.egg/secure_smtpd/proxy_server.py|process_message|55]...
We need to set a proper Content-Type when encrypting the message.
In some weird border cases, the content may already be encrypted and the subject line may still contain the triggering characters (for example, when using caff). We should verify that...
Optionally encrypt if a key was found (without being prompted via subject line).