<div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 30 March 2017 at 05:09, Rich Wales <span dir="ltr"><<a href="mailto:richw@richw.org" target="_blank">richw@richw.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
From examining the amavisd-new code, it appears the relevant portion
is at line 11554:<br>
<br>
<tt><i>11554</i> } elsif (!$reporting &&
/^(?:X-Spam|X-CRM114)-.+:/si) {</tt><tt><br>
</tt><tt><i>11555</i> # skip header fields inserted by us</tt><tt><br>
</tt><tt><i>11556</i> } else {</tt><br>
<br>
This is amavisd-new-2.10.1 (20141025).<br>
<br>
So it doesn't look like changing <b>$sa_tag_level_deflt</b>, or any
other user-tunable value, is going to do what I want.<br>
<br>
I suppose I could try commenting out lines 11554 and 11555 if I
really, really want the X-Spam lines to be retained when releasing a
message from quarantine. Any other ideas?</div></blockquote><div><br></div><div class="gmail_default" style="font-size:small">Could you just pick up the spam file(s) from /var/lib/amavis/virusmails (or wherever you have amavisd-new set to store them) and re-inject them into postfix via the port used by amavisd-new? Often this is <a href="http://127.0.0.1:10025">127.0.0.1:10025</a>. This would avoid them being picked up again by amavisd-new so they should be sent on to their original destination with all headers intact.</div></div></div></div>