Re: BCC Rule and Subject change for specific rule

2021-01-05 Thread John Hardin

On Tue, 5 Jan 2021, Dave Funk wrote:


On Tue, 5 Jan 2021, John Hardin wrote:


On Tue, 5 Jan 2021, Giovanni Bechis wrote:


On Mon, Jan 04, 2021 at 05:23:30PM -0800, John Hardin wrote:


I'm pretty sure SA only allows setting the subject tag by language, not
based on rule hits.


Starting from 3.4.3 you can add a prefix to the email subject like that:
header  FROM_ME From:name =~ /Me/
subjprefix  FROM_ME [From Me]


Cool, I missed that at the time. Thanks!

The documentation does mention it exists but does not give an example of 
using it...


Does this work if you're using a milter for your glue?

Is there some special status/command that spamd returns to the milter for 
this kind of modification? If so the milters may need to be recoded to 
implement it.


No, it's rewriting the message headers before passing the message back to 
the MTA. It's already adding a [SPAM] tag to the subject by default (if 
enabled). This just allows customization of that behavior.



--
 John Hardin KA7OHZhttp://www.impsec.org/~jhardin/
 jhar...@impsec.org pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
---
 220 days since the first private commercial manned orbital mission (SpaceX)


Re: BCC Rule and Subject change for specific rule

2021-01-05 Thread Dave Funk

On Tue, 5 Jan 2021, John Hardin wrote:


On Tue, 5 Jan 2021, Giovanni Bechis wrote:


On Mon, Jan 04, 2021 at 05:23:30PM -0800, John Hardin wrote:


I'm pretty sure SA only allows setting the subject tag by language, not
based on rule hits.


Starting from 3.4.3 you can add a prefix to the email subject like that:
header  FROM_ME From:name =~ /Me/
subjprefix  FROM_ME [From Me]


Cool, I missed that at the time. Thanks!

The documentation does mention it exists but does not give an example of 
using it...


Does this work if you're using a milter for your glue?

Is there some special status/command that spamd returns to the milter for this 
kind of modification? If so the milters may need to be recoded to implement it.



--
Dave Funk   University of Iowa
 College of Engineering
319/335-5751   FAX: 319/384-05491256 Seamans Center, 103 S Capitol St.
Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527
#include 
Better is not better, 'standard' is better. B{


Re: BCC Rule and Subject change for specific rule

2021-01-05 Thread John Hardin

On Tue, 5 Jan 2021, Giovanni Bechis wrote:


On Mon, Jan 04, 2021 at 05:23:30PM -0800, John Hardin wrote:


I'm pretty sure SA only allows setting the subject tag by language, not
based on rule hits.


Starting from 3.4.3 you can add a prefix to the email subject like that:
header  FROM_ME From:name =~ /Me/
subjprefix  FROM_ME [From Me]


Cool, I missed that at the time. Thanks!

The documentation does mention it exists but does not give an example of 
using it...



--
 John Hardin KA7OHZhttp://www.impsec.org/~jhardin/
 jhar...@impsec.org pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
---
  Your mouse has moved. Your Windows Operating System must be
  relicensed due to this hardware change. Please contact Microsoft
  to obtain a new activation key. If this hardware change results in
  added functionality you may be subject to additional license fees.
  Your system will now shut down. Thank you for choosing Microsoft.
---
 220 days since the first private commercial manned orbital mission (SpaceX)