<%args>
$headers
</%args>
<%init>
return unless RT::BugTracker::Public->IsPublicUser;

# Protect email addresses
for my $h (@$headers) {
    next if $h->{'Tag'} =~ /^(?:Subject)$/i;
    $h->{'Value'} =~ s/@/ [...] /g;

    # Sometimes mbox From_ lines make it into RT headers
    $h->{'Tag'} =~ s/@/ [...] /g
        if $h->{'Tag'} =~ /^From\s+/;
}
</%init>
