diff options
| author | Aurélien Bompard | 2015-06-30 15:56:40 +0200 |
|---|---|---|
| committer | Aurélien Bompard | 2015-06-30 17:56:07 +0200 |
| commit | 8d446e962b7fb66c235db59a819aca3c34acdcb0 (patch) | |
| tree | 022281e388646b7369de06c88942a97c920c7168 | |
| parent | e6ec3242c2cb1a19ad1df0acd448cd3d0e0e80bf (diff) | |
| download | mailman-8d446e962b7fb66c235db59a819aca3c34acdcb0.tar.gz mailman-8d446e962b7fb66c235db59a819aca3c34acdcb0.tar.zst mailman-8d446e962b7fb66c235db59a819aca3c34acdcb0.zip | |
According to RFC 2369, the URL should be between brackets
| -rw-r--r-- | src/mailman/app/docs/pipelines.rst | 2 | ||||
| -rw-r--r-- | src/mailman/handlers/rfc_2369.py | 2 | ||||
| -rw-r--r-- | src/mailman/handlers/tests/test_rfc_2369.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/app/docs/pipelines.rst b/src/mailman/app/docs/pipelines.rst index dfdc6d70c..eb59fcfc2 100644 --- a/src/mailman/app/docs/pipelines.rst +++ b/src/mailman/app/docs/pipelines.rst @@ -49,7 +49,7 @@ etc. Precedence: list Subject: [Test] My first post List-Id: <test.example.com> - Archived-At: http://lists.example.com/.../4CMWUN6BHVCMHMDAOSJZ2Q72G5M32MWB + Archived-At: <http://lists.example.com/.../4CMWUN6BHVCMHMDAOSJZ2Q72G5M32MWB> List-Archive: <http://lists.example.com/archives/test@example.com> List-Help: <mailto:test-request@example.com?subject=help> List-Post: <mailto:test@example.com> diff --git a/src/mailman/handlers/rfc_2369.py b/src/mailman/handlers/rfc_2369.py index 8cb586abf..ab7fc76ea 100644 --- a/src/mailman/handlers/rfc_2369.py +++ b/src/mailman/handlers/rfc_2369.py @@ -91,7 +91,7 @@ def process(mlist, msg, msgdata): '<{}>'.format(archiver_url))) permalink = archiver.system_archiver.permalink(mlist, msg) if permalink is not None: - headers.append(('Archived-At', permalink)) + headers.append(('Archived-At', '<{}>'.format(permalink))) # XXX RFC 2369 also defines a List-Owner header which we are not currently # supporting, but should. # diff --git a/src/mailman/handlers/tests/test_rfc_2369.py b/src/mailman/handlers/tests/test_rfc_2369.py index 3ee3a7ca2..b297d04c2 100644 --- a/src/mailman/handlers/tests/test_rfc_2369.py +++ b/src/mailman/handlers/tests/test_rfc_2369.py @@ -97,7 +97,7 @@ Dummy text ['<http://lists.example.com>']) self.assertEqual( self._msg.get_all('Archived-At'), - ['http://lists.example.com/4CMWUN6BHVCMHMDAOSJZ2Q72G5M32MWB']) + ['<http://lists.example.com/4CMWUN6BHVCMHMDAOSJZ2Q72G5M32MWB>']) def test_prototype_no_url(self): # The prototype archiver is not web-based, it must not return URLs |
