391
391
result = None, result_comment = None,
392
392
reason = None, reason_comment = None,
393
393
properties = None,
394
smtp_auth = None, smtp_auth_comment = None
394
# Added in RFC 7601, SMTP Auth method can refer to either the identity
395
# confirmed in the auth command or the identity in auth parameter of
396
# the SMTP Mail command, so we cover either option.
397
smtp_auth = None, smtp_auth_comment = None,
398
smtp_mailfrom = None, smtp_mailfrom_comment = None,
396
400
AuthenticationResult.__init__(self, self.METHOD, version,
397
401
result, result_comment, reason, reason_comment, properties)
398
402
if smtp_auth: self.smtp_auth = smtp_auth
399
403
if smtp_auth_comment: self.smtp_auth_comment = smtp_auth_comment
404
if smtp_mailfrom: self.smtp_mailfrom = smtp_mailfrom
405
if smtp_mailfrom_comment: self.smtp_mailfrom_comment = smtp_mailfrom_comment
407
smtp_mailfrom, smtp_mailfrom_comment = make_result_class_properties('smtp', 'mailfrom')
401
408
smtp_auth, smtp_auth_comment = make_result_class_properties('smtp', 'auth')
403
410
# AuthenticationResultsHeader class