~ar-python-hackers/authentication-results-python/0.2

« back to all changes in this revision

Viewing changes to authres.py

  • Committer: Scott Kitterman
  • Date: 2011-08-11 12:57:05 UTC
  • mfrom: (7.1.2 trunk)
  • Revision ID: scott@kitterman.com-20110811125705-i2p71b0xaremeevn
Merge local changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
257
257
    header_resent_from   = authres_class_property('header', 'resent-from')
258
258
    header_resent_sender = authres_class_property('header', 'resent-sender')
259
259
 
 
260
    @property
 
261
    def header_pra(self):
 
262
        return (
 
263
            self.header_resent_sender or
 
264
            self.header_resent_from   or
 
265
            self.header_sender        or
 
266
            self.header_from
 
267
        )
 
268
 
260
269
class IPRevAuthenticationResult(AuthenticationResult):
261
270
    "iprev result clause of an ``Authentication-Results`` header"
262
271
 
436
445
            return
437
446
        self._parse_rfc5322_cfws()
438
447
        if self._parse_pattern(r'none'):
439
 
            return self.NONE_RESULTS
 
448
            return self.NONE_RESULT
440
449
        else:
441
450
            method, version, result = self._parse_methodspec()
442
451
            self._parse_rfc5322_cfws()