Abhilash Raj pushed to branch master at GNU Mailman / Mailman Core
Commits: f477598c by Richard Kroegel at 2019-02-16T17:01:53Z Update qmail-lmtp to comply with qmail for first adress extension - - - - - a33178a3 by Abhilash Raj at 2019-02-16T17:01:53Z Merge branch 'master' into 'master' Update qmail-lmtp to comply with qmail for first adress extension See merge request mailman/mailman!450 - - - - - 1 changed file: - contrib/qmail-lmtp Changes: ===================================== contrib/qmail-lmtp ===================================== @@ -13,9 +13,13 @@ try: lmtp = smtplib.LMTP("localhost", int(sys.argv[1])) try: + # See <http://www.qmail.org/man/man8/qmail-command.html> for qmail command + # docs and supplied environment variables. We need to replace "1" with an + # empty string, as qmail only supports EXT, EXT2, EXT3, EXT4. + arg_ext = sys.argv[2] if sys.argv[2] != "1" else "" lmtp.sendmail( os.environ['SENDER'], - os.environ['EXT' + sys.argv[2]] + "@" + os.environ['HOST'], + os.environ['EXT' + arg_ext] + "@" + os.environ['HOST'], sys.stdin.buffer.read() ) except smtplib.SMTPResponseException as e: View it on GitLab: https://gitlab.com/mailman/mailman/compare/b68dd347415ad35cd2bc99edc99bb4ff99bbda8a...a33178a39d70b51f3313cec94a24af7f644d97cb -- View it on GitLab: https://gitlab.com/mailman/mailman/compare/b68dd347415ad35cd2bc99edc99bb4ff99bbda8a...a33178a39d70b51f3313cec94a24af7f644d97cb You're receiving this email because of your account on gitlab.com.
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org