[Mimedefang] prepend new headers?

james.madill at duke.edu james.madill at duke.edu
Tue Dec 20 12:38:15 EST 2005


mimedefang-bounces at lists.roaringpenguin.com wrote on 12/20/2005 12:18:15:

> I'm using a recent version of sendmail (8.13.1) which supports smfi_insheader.
> 
> Is it possible to configure MIMEDefang to use smfi_insheader instead
> of smfi_addheader?
> 
> The current behavior (smfi_addheader) puts the new header at the end
> of all the existing headers, whereas I want the new header to be at 
> the beginning.
> 
> I'm having problems with craftily obfuscated existing headers 
> cutting off downstream header recognition, so my X-Spam-Score tag 
> isn't being recognized by the MUA.
> 
> Prepending headers should fix that.
> 
> -- 
> Matthew.van.Eerde (at) hbinc.com               805.964.4554 x902
> Hispanic Business Inc./HireDiversity.com       Software Engineer

This doesn't answer your question, but I resolved this issue by running through the headers, overwriting any header that was duplicated with the subsequent value.  The code would not overwrite headers that allowed multiple entries, such as the Received: headers.


-- James

      o o o o o o o . . .   _______________________ ________=======_T___
    o      _____            |James Madill         | |Duke U. Health Sys|
 >.][__n_n_| D[  ====|____  |james.madill at duke.edu| |  (919) 668-2411  |
  (________|__|_[____/____]_|_____________________|_|__________________|
 _/oo  O-O-O  `  oo     oo  'o^o^o           o^o^o` 'o^o            o^o`
 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
<http://www.duke.edu/~madil001/>



More information about the MIMEDefang mailing list