[Mimedefang] change sendmail priority from within filter_begin()

Kevin A. McGrail KMcGrail at PCCC.com
Fri Jan 15 09:21:01 EST 2010

Hi Frank,

Expect some flames for not reading the manual so here's two hints:

1 - man mimedefang-filter

2 - action_change_header....

      action_change_header($hdr, $val, $index)
              Changes an existing header in the message. This can be 
used in filter_begin or filter_end.  The $hdr parameter is the header 
name without the colon, and $val is the header value.  If the header does
              not exist, then a header with the given name and value is 

              The $index parameter is optional; it defaults to 1.  If 
you supply it, then the $index'th occurrence of the header is changed, 
if there is more than one header with the same name.  (This  is  common
              with the Received: header, for example.)

> how can I change the sendmail priority from within mimedefang? 
> action_add_header('Precedence','bulk') insite filter_begin() adds the 
> header but seems not to change the priority (probably because sendmail 
> already has set it).

More information about the MIMEDefang mailing list