about summary refs log tree commit homepage
path: root/lib/PublicInbox/NNTP.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-10 22:38:47 +0000
committerEric Wong <e@80x24.org>2020-12-11 03:40:20 +0000
commit1bf653ad139bf7bb3d853ab0b5eae3eaa1b13a95 (patch)
tree389bacf02a9e80bcb445c59fafad8159f63f3610 /lib/PublicInbox/NNTP.pm
parentac4f951e03eaf635c8dd20a6f42bfc71b0011412 (diff)
downloadpublic-inbox-1bf653ad139bf7bb3d853ab0b5eae3eaa1b13a95.tar.gz
These headers can conflict with headers in the DKIM signature;
and parsing the DKIM-Signature header to determine whether or
not we can safely add a header would be more code and CPU
cycles.

Since IMAP seems fine without these headers (and JMAP will
likely be, too), there's likely no need to continue appending
these to every message.  Nowadays, developers seem sufficiently
trained to use URLs with Message-IDs in them.  So drop the
headers and save some cycles and bandwidth all around.
Diffstat (limited to 'lib/PublicInbox/NNTP.pm')
-rw-r--r--lib/PublicInbox/NNTP.pm8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm
index 097fdb84..11a7ffb8 100644
--- a/lib/PublicInbox/NNTP.pm
+++ b/lib/PublicInbox/NNTP.pm
@@ -487,14 +487,6 @@ sub set_nntp_headers ($$) {
         # *something* here is required for leafnode, try to follow
         # RFC 5536 3.1.5...
         $hdr->header_set('Path', $server_name . '!not-for-mail');
-        if (my $post_addr = $ibx->{-primary_address}) {
-                header_append($hdr, 'List-Post', "<mailto:$post_addr>");
-        }
-        if (my $url = $ibx->base_url) {
-                $mid = mid_escape($mid);
-                header_append($hdr, 'Archived-At', "<$url$mid/>");
-                header_append($hdr, 'List-Archive', "<$url>");
-        }
 }
 
 sub art_lookup ($$$) {