HEX
Server: Apache
System: Linux pdx1-shared-a1-11 6.6.116-grsec-jammy-dirty #1 SMP Sat Nov 8 00:02:42 UTC 2025 x86_64
User: mollywopper (10344313)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //dh/bin/change_email_header.pl

#!/usr/bin/perl use strict; my $header = shift @ARGV; my $add = shift @ARGV; $add =~ tr/+/ /; $add =~ s/\%([A-Z0-9][A-Z0-9])/pack("C",hex($1))/eg; $add .= ' ' unless $add =~ /\s$/; # read headers while (<>) { chomp; last if $_ eq ''; # end of headers! my ($h, $v) = /^(\S+): (.*)/; if (defined $h) { if ($h eq $header) { $v = $add . $v; } print "$h: $v\n"; } else { print "$_\n"; ## weird } } # sep print "\n"; # body while (<>) { print; }