about summary refs log tree commit homepage
path: root/scripts
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-04-01 06:16:20 +0000
committerEric Wong <e@yhbt.net>2020-04-02 10:27:45 +0000
commit906393b801050e303d2ec2a660c85de4a5fa4740 (patch)
tree4fcd132c77cd8eecd09eb2007ecfaa252f48e031 /scripts
parenteaa56562a0a09d9e8ecf3f2371dda20645bd82f3 (diff)
downloadpublic-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-xscripts/ssoma-replay2
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,