HEX
Server: Apache
System: Linux pdx1-shared-a1-11 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mollywopper (10344313)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //dh/bin/change_email_header.pl

Suzaka #!/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; }