]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/MDA.pm
mda: set List-ID correctly according to RFC2919
[public-inbox.git] / lib / PublicInbox / MDA.pm
index bcf5358bb6e6d7cd9e450e8f9c32c1db58f03ae1..6490102aaf8b3d52e6bcd680380a66507688fe82 100644 (file)
@@ -78,7 +78,8 @@ sub set_list_headers {
        my ($class, $simple, $dst) = @_;
        unless (defined $simple->header('List-Id')) {
                my $pa = $dst->{-primary_address};
-               $simple->header_set("List-Id", "<$pa>"); # RFC2919
+               $pa =~ tr/@/./; # RFC2919
+               $simple->header_set("List-Id", "<$pa>");
        }
 
        $simple->header_set($_) foreach @BAD_HEADERS;