about summary refs log tree commit homepage
path: root/scripts/import_slrnspool
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/import_slrnspool')
-rwxr-xr-xscripts/import_slrnspool11
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/import_slrnspool b/scripts/import_slrnspool
index fec7ebf1..ea7a97bf 100755
--- a/scripts/import_slrnspool
+++ b/scripts/import_slrnspool
@@ -50,10 +50,13 @@ for (; $n < $max; $n++) {
         my $s = $f->simple;
 
         # gmane rewrites Received headers, which increases spamminess
-        my @h = $s->header('Original-Received');
-        if (@h) {
-                $s->header_set('Received', @h);
-                $s->header_set('Original-Received');
+        # Some older archives set Original-To
+        foreach my $x (qw(Received To)) {
+                my @h = $s->header("Original-$x");
+                if (@h) {
+                        $s->header_set($x, @h);
+                        $s->header_set("Original-$x");
+                }
         }
 
         # triggers for the SA HEADER_SPAM rule