[Mimedefang] X-Scanned-By Header Question

Rajesh Bhandari BhandaR at mail.nlm.nih.gov
Mon Nov 4 16:21:15 EST 2002


I want to change the default MD X-Scanned-By: header to say something like X-Scanned-By: <host-name>/<MD ver>/<SA ver>.  I thought there was something in the archives on this, but I can't find it.

With MD 2.24, I can do something like
- action_delete_all_headers("X-Scanned-By")
and then 
- action_add_header("X-Scanned-By", "$hostname \/$mdversion\/$saversion" )

I have two questions on this.
1. At what point does the default X-Scanned-By header get added into the message?  Would putting the above two 'action' lines in filter_end take care of the one that MD automatically adds in, or will I end up with two X-Scanned-By headers
2. Are the current MD version and SA version available as perl variables?  If they are not, any ideas on how I could get them?

Thanks,
Rajesh






More information about the MIMEDefang mailing list