diff options
author | Eric Wong <e@yhbt.net> | 2020-04-01 06:16:20 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-04-02 10:27:45 +0000 |
commit | 906393b801050e303d2ec2a660c85de4a5fa4740 (patch) | |
tree | 4fcd132c77cd8eecd09eb2007ecfaa252f48e031 /scripts | |
parent | eaa56562a0a09d9e8ecf3f2371dda20645bd82f3 (diff) | |
download | public-inbox-906393b801050e303d2ec2a660c85de4a5fa4740.tar.gz |
This allows us to consistently enforce the same Message-ID extraction rules everywhere and makes it easier for us to make changes in the future. Update scripts/ssoma-replay, as well, but don't rely on PublicInbox::* modules in that since it's legacy and public-inbox was never a dependency of ssoma.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ssoma-replay | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ssoma-replay b/scripts/ssoma-replay index 46b15d7e..3e928084 100755 --- a/scripts/ssoma-replay +++ b/scripts/ssoma-replay @@ -52,7 +52,7 @@ if (defined $list_id) { if (defined $domain) { $archive_url = "https://$domain/$user/"; my $mid = $header_obj->header('Message-Id'); - if ($mid =~ /\A<(.+)>\z/) { + if ($mid =~ /<[ \t]*([^>]+)?[ \t]*>/s) { $mid = $1; } $mid = uri_escape_utf8($mid, |