Mark Sapiro pushed to branch master at GNU Mailman / Mailman Core


Commits:
50e3cb57 by Mark Sapiro at 2021-03-03T22:21:07-08:00
Require aiosmtpd >= 1.4.1 to remove local part length restriction.

- - - - -
298710d3 by Mark Sapiro at 2021-03-04T06:51:08+00:00
Merge branch 'lmtp' into 'master'

Require aiosmtpd >= 1.4.1 to remove local part length restriction.

Closes #836

See merge request mailman/mailman!791
- - - - -


3 changed files:

- setup.py
- src/mailman/docs/NEWS.rst
- src/mailman/runners/tests/test_lmtp.py


Changes:

=====================================
setup.py
=====================================
@@ -110,7 +110,7 @@ case second 'm'.  Any other spelling is incorrect.""",
         'console_scripts' : list(scripts),
         },
     install_requires = [
-        'aiosmtpd>=1.1',
+        'aiosmtpd>=1.4.1',
         'alembic',
         'atpublic',
         'authheaders>=0.9.2',


=====================================
src/mailman/docs/NEWS.rst
=====================================
@@ -15,6 +15,11 @@ Here is a history of user visible changes to Mailman.
 
 (2021-XX-XX)
 
+Bugs
+----
+* Require aiosmtpd >= 1.4.1 to allow address local parts longer than 64 bytes
+  in the lmtp runner.  (Closes #836)
+
 Command line
 ------------
 * The ``notify`` subcommand will now decode an RFC 2047 encoded Subject: for


=====================================
src/mailman/runners/tests/test_lmtp.py
=====================================
@@ -290,3 +290,19 @@ Message-ID: <alpha>
 """)
         items = get_queue_messages('in', expected_count=1)
         self.assertEqual(items[0].msg['message-id'], '<alpha>')
+
+    def test_issue_836(self):
+        # Local parts > 64 bytes should be accepted.
+        with transaction():
+            create_list('longer_than_15_by...@example.com')
+        recip = 'longer_than_15_bytes-confirm+{}@example.com'.format(40*'x')
+        self._lmtp.sendmail('a...@example.com', [recip], """\
+From: a...@example.com
+To: {}
+Subject: confirm
+Message-ID: <alpha>
+
+""".format(recip))
+        items = get_queue_messages('command', expected_count=1)
+        self.assertEqual(items[0].msgdata['listid'],
+                         'longer_than_15_bytes.example.com')



View it on GitLab: 
https://gitlab.com/mailman/mailman/-/compare/3a4c08e2897aa5c714668a6479fcbad13c6ee83e...298710d3fe324adb66ee4698aa2e4157d2be5237

-- 
View it on GitLab: 
https://gitlab.com/mailman/mailman/-/compare/3a4c08e2897aa5c714668a6479fcbad13c6ee83e...298710d3fe324adb66ee4698aa2e4157d2be5237
You're receiving this email because of your account on gitlab.com.


_______________________________________________
Mailman-checkins mailing list -- mailman-checkins@python.org
To unsubscribe send an email to mailman-checkins-le...@python.org
https://mail.python.org/mailman3/lists/mailman-checkins.python.org/
Member address: arch...@jab.org

Reply via email to