about summary refs log tree commit homepage
path: root/scripts
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-06-26 03:05:39 +0000
committerEric Wong <e@80x24.org>2017-06-26 03:07:46 +0000
commit23d896234f3eb5e579de2e8ddf3c723654862ade (patch)
treefd7812a146f847bae43139ccceb1ee5e35dc72d9 /scripts
parentdfdaf74a2ab6d694315d8f636e3771a7a7934f3f (diff)
downloadpublic-inbox-23d896234f3eb5e579de2e8ddf3c723654862ade.tar.gz
Oops, due to an old mistake , List-ID was set incorrectly
in the MDA.  This could cause some breakage w.r.t. mail filters.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ssoma-replay4
1 files changed, 3 insertions, 1 deletions
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, <user@domain> was used
+        # as the list-Id instead of <user.domain> as recommended in RFC2919
+        ($user, $domain) = ($list_id =~ /<([^\.@]+)[\.@](.+)>/g);
 
         if (defined $domain) {
                 $archive_url = "https://$domain/$user/";