]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/NNTP.pm
www+nntp: deal with lack of addresses for ->ALL
[public-inbox.git] / lib / PublicInbox / NNTP.pm
index 0b43cdbc5b9308378d953b250e45f3e8da398ea6..097fdb843fa663e2414b5393cd8196e7fbf4afc4 100644 (file)
@@ -487,8 +487,9 @@ 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');
-
-       header_append($hdr, 'List-Post', "<mailto:$ibx->{-primary_address}>");
+       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/>");