On Mon, 4 Aug 2008, Alan Halachmi wrote:
>       Looking through the conversation today with Jim Maloney, it would 
> seem that the issue I describe below is fixable either with a second MTA 
> or proper use of _FRR_REPLACE_RULES.  I've compiled in the 
> _FRR_REPLACE_RULES option, but I wasn't able to find documentation on 
> how to invoke it.

FFRs (For Future Release features) are undocumented deliberately, because 
I don't want to provide something and then remove it later if it's decided 
that the feature was a bad idea.

When you compile with _FFR_REPLACE_RULES, you add a new configuration file 
option called ReplaceRules.  This names a file which should contain 
entries of the form:

        regexp  <TAB>   string

(Blank lines are ignored, and the "#" character denotes the beginning of a 
comment which is also ignored.)

Then, anywhere there's text matching "regexp" in the value of any header 
field in the message, that text will be replaced by "string".  So if your 
file contains:

        host\.example\.com      <TAB>   example.com

...then this:

        From: [EMAIL PROTECTED]

...will be canonicalized as:

        From: [EMAIL PROTECTED]

You can have any number of lines in the ReplaceRules file you create.  The 
rules are all applied in order to each header field as it arrives.  That 
means more than one rule can match, so if your ReplaceRules file contains:

        X       <tab>   Y
        Y       <tab>   Z

...then all Xs will be changed to Ys, and then all Ys will be changed to 
Zs.  However, in the opposite order, you'd get a different result.

(Note that I've exaggerated the spaces in the lines for illustration 
reasons; the actual lines would look like:

X       Y
Y       Z

...and those are single tabs, not seven spaces, in between the two fields 
on each line.)

This is currently done in both signing and verifying mode, but I'm pretty 
sure I want to change it so it only applies in signing mode.

Let me know if you have any further questions.

-MSK

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
dkim-milter-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dkim-milter-discuss

Reply via email to