spf-discuss
[Top] [All Lists]

Re: SRS and AOL case folding

2004-03-19 16:17:27
On Fri, 2004-03-19 at 17:51 -0500, Stuart D. Gathman wrote:
What is the algorithm?  I am using a Python translation of MAIL::SRS 0.30.
I thought I saw some code in there to handle case folding, but I
don't see how to use it.

Mine's done entirely in Exim config language and is unlikely to be
useful in direct translation to Python. The salvageable part of the
algorithm will be 'be case-insensitive but case-preserving'. 

More specifically... on generation of an SRS address we force the text
being hashed to lowercase before hashing -- but include it in the
original case in the SRS address. We do likewise on receipt of a
potential SRS address. We also accept [Ss][Rr][Ss] at the beginning of a
received SRS address, and force the hash extracted from the received
address to lowercase before comparing it with the hash computed from the
remainder of the received address. 

It's at http://www.infradead.org/rpr.html

-- 
dwmw2