X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=scripts%2Fssoma-replay;h=50bf45604b19aa7acefba902ebde6c86015bb304;hp=3c3fdf4857d239fe48462ffb72bc70950bae30d0;hb=23d896234f3eb5e579de2e8ddf3c723654862ade;hpb=dfdaf74a2ab6d694315d8f636e3771a7a7934f3f diff --git a/scripts/ssoma-replay b/scripts/ssoma-replay index 3c3fdf48..50bf4560 100755 --- a/scripts/ssoma-replay +++ b/scripts/ssoma-replay @@ -45,7 +45,9 @@ my $body = $msg->body; my $list_id = $header_obj->header('List-Id'); my ($archive_url, $user, $domain); if (defined $list_id) { - ($user, $domain) = ($list_id =~ /<(.+)\@(.+)>/g); + # due to a bug in old versions of public-inbox, was used + # as the list-Id instead of as recommended in RFC2919 + ($user, $domain) = ($list_id =~ /<([^\.@]+)[\.@](.+)>/g); if (defined $domain) { $archive_url = "https://$domain/$user/";