我正在与请求跟踪4.0.15。
我的安装使用getmail将附加(或创build)html电子邮件给门票,但是,内联图像不可见:
<div dir="ltr"> <div>text text text text text <br><br><img><br><br> </div>text text text text text text<br>
但是当我从RT4票据页面下载电子邮件并打开它时,图像是可见的:
<div dir="ltr"> <div>text text text text text <br><br><img alt="Inline images 1" src="<<removed>>"><br><br> </div>text text text text text text<br>
我的configuration:
Set($TrustHTMLAttachments, 1); Set($AlwaysDownloadAttachments, 1); Set($PreferRichText, 1); Set($ShowTransactionImages, 1);
我也创build了一个Web_local.pm的内容:
push @SCRUBBER_ALLOWED_TAGS, qw(ABUP BR I HR BR SMALL EM FONT SPAN STRONG SUB SUP STRIKE H1 H2 H3 H4 H5 H6 DIV UL OL LI DL DT DD PRE BLOCKQUOTE BDO IMG); push %SCRUBBER_ALLOWED_ATTRIBUTES = ( # Match http, https, ftp, mailto and relative urls # XXX: we also scrub format strings with this module then allow simple config options href => qr{^(?:https?:|ftp:|mailto:|/|__Web(?:Path|BaseURL|URL)__)}i, face => 1, size => 1, target => 1, src => 1, style => qr{ ^(?:\s* (?:(?:background-)?color: \s* (?:rgb\(\s* \d+, \s* \d+, \s* \d+ \s*\) | # rgb(d,d,d) \#[a-f0-9]{3,6} | # #fff or #ffffff [\w\-]+ # green, light-blue, etc. ) | text-align: \s* \w+ | font-size: \s* [\w.\-]+ | font-family: \s* [\w\s"',.\-]+ | font-weight: \s* [\w\-]+ | # MS Office styles, which are probably fine. If we don't, then any # associated styles in the same attribute get stripped. mso-[\w\-]+?: \s* [\w\s"',.\-]+ )\s* ;? \s*) +$ # one or more of these allowed properties from here 'till sunset }ix, dir => qr/^(rtl|ltr)$/i, lang => qr/^\w+(-\w+)?$/, );
您需要在%SCRUBBER_ALLOWED_ATTRIBUTES允许alt属性