diff --git a/README.md b/README.md index 5f91c5f..bd97737 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,14 @@ For installation instructions, please refer to the included INSTALL file. - Easy installation This is forked from the original project at http://code.google.com/p/gpg-mailgate/ + +# Authors + +This is a combined work of many developers: + +* mcmaster +* Igor Rzegocki - [GitHub](https://github.com/ajgon/gpg-mailgate) +* perennate - [GitHub](https://github.com/uakfdotb/gpg-mailgate) +* Colin Moller - [GitHub](https://github.com/LeftyBC/gpg-mailgate) +* Taylor Hornby - [GitHub](https://github.com/defuse/gpg-mailgate) +* Martin (uragit) - [GitHub](https://github.com/uragit/gpg-mailgate) diff --git a/gpg-mailgate.py b/gpg-mailgate.py index 00f60b5..74b5dc0 100755 --- a/gpg-mailgate.py +++ b/gpg-mailgate.py @@ -45,14 +45,11 @@ def send_msg( message, recipients = None ): smtp.sendmail( from_addr, recipients, message.as_string() ) def encrypt_payload( payload, gpg_to_cmdline ): - gpg = GnuPG.GPGEncryptor( cfg['gpg']['keyhome'], gpg_to_cmdline, payload.get_content_charset() ) raw_payload = payload.get_payload(decode=True) if "-----BEGIN PGP MESSAGE-----" in raw_payload and "-----END PGP MESSAGE-----" in raw_payload: return payload gpg = GnuPG.GPGEncryptor( cfg['gpg']['keyhome'], gpg_to_cmdline, payload.get_content_charset() ) gpg.update( raw_payload ) - if "-----BEGIN PGP MESSAGE-----" in raw_payload and "-----END PGP MESSAGE-----" in raw_payload: - return payload payload.set_payload( gpg.encrypt() ) isAttachment = payload.get_param( 'attachment', None, 'Content-Disposition' ) is not None