if (RT->Config->Get('AlwaysDownloadAttachments')) {
$r->headers_out->{'Content-Disposition'} = "attachment";
}
elsif (!RT->Config->Get('TrustHTMLAttachments')) {
if (RT->Config->Get('AlwaysDownloadAttachments')) {
$r->headers_out->{'Content-Disposition'} = "attachment";
}
elsif (!RT->Config->Get('TrustHTMLAttachments')) {