
julian at mehnle
Jun 12, 2007, 2:07 PM
Post #4 of 5
(2035 views)
Permalink
|
|
Re: Case sensitivity of SPF results in SPF Received
[In reply to]
|
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Scott Kitterman wrote: > The ABNF for Received SPF shows the results with an initial capital > letter: > > http://www.openspf.org/RFC_4408#header-field > > result = "Pass" / "Fail" / "SoftFail" / "Neutral" / > "None" / "TempError" / "PermError" > > Is that case sensitive? Pyspf currently returns all lower case and I'm > wondering if that's a bug? <http://www.openspf.org/RFC_4408#abnf>: | See RFC 4234 for ABNF notation. Please note that as per this ABNF | definition, literal text strings (those in quotes) are case-insensitive. RFC 4234, "2.3. Terminal Values": | 2.3. Terminal Values | | [...] | | ABNF permits the specification of literal text strings directly, | enclosed in quotation-marks. Hence: | command = "command string" | | Literal text strings are interpreted as a concatenated set of | printable characters. | | NOTE: | ABNF strings are case-insensitive and the character set for these | strings is us-ascii. | | Hence: | rulename = "abc" | and: | rulename = "aBc" | will match "abc", "Abc", "aBc", "abC", "ABc", "aBC", "AbC", and | "ABC". | | To specify a rule that IS case SENSITIVE, specify the characters | individually. | | For example: | rulename = %d97 %d98 %d99 | or | rulename = %d97.98.99 | will match only the string that comprises only the lowercased | characters, abc. Scott Kitterman wrote: > Some of the applications that use the pyspf library expect lower case, > so any changes will need to be handled with care. Then they are in error. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGbwslwL7PKlBZWjsRAiIJAJ98dCsfegX8j1HGZ0nVM0poQWhlvgCdEler C0SRbBKWwpVOCGitaReYWRo= =icEf -----END PGP SIGNATURE----- ------------------------------------------- ----------------------------------------------------------------------- To unsubscribe, change your address, or temporarily deactivate your subscription, please go to http://v2.listbox.com/member/?member_id=1311533&user_secret=456ecacd Powered by Listbox: http://www.listbox.com
|