Check and update references to RFC 4871 to refer to RFC 6376.

This commit is contained in:
Scott Kitterman
2017-05-31 02:01:22 -04:00
parent 144886ae0b
commit 38664fab55
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -370,9 +370,9 @@ class DomainSigner(object):
raise ParameterError(
"Unsupported signature algorithm: "+signature_algorithm)
self.signature_algorithm = signature_algorithm
#: Header fields which should be signed. Default from RFC4871
#: Header fields which should be signed. Default as suggested by RFC6376
self.should_sign = set(DKIM.SHOULD)
#: Header fields which should not be signed. The default is from RFC4871.
#: Header fields which should not be signed. The default is from RFC6376.
#: Attempting to sign these headers results in an exception.
#: If it is necessary to sign one of these, it must be removed
#: from this list first.
@@ -389,7 +389,7 @@ class DomainSigner(object):
#: @since: 0.5
FROZEN = (b'from',b'date',b'subject')
#: The rfc4871 recommended header fields to sign
#: The rfc6376 recommended header fields to sign
#: @since: 0.5
SHOULD = (
b'sender', b'reply-to', b'subject', b'date', b'message-id', b'to', b'cc',
@@ -400,7 +400,7 @@ class DomainSigner(object):
b'list-subscribe', b'list-post', b'list-owner', b'list-archive'
)
#: The rfc4871 recommended header fields not to sign.
#: The rfc6376 recommended header fields not to sign.
#: @since: 0.5
SHOULD_NOT = (
b'return-path',b'received',b'comments',b'keywords',b'bcc',b'resent-bcc',
+1 -1
View File
@@ -51,7 +51,7 @@ class InvalidTagSpec(InvalidTagValueList):
def parse_tag_value(tag_list):
"""Parse a DKIM Tag=Value list.
Interprets the syntax specified by RFC4871 section 3.2.
Interprets the syntax specified by RFC6376 section 3.2.
Assumes that folding whitespace is already unfolded.
@param tag_list: A bytes string containing a DKIM Tag=Value list.