I’ve read RFC2919 https://www.ietf.org/rfc/rfc2919.txt which says: "The list header fields are subject to the encoding and character restrictions for mail headers as described in [RFC822]."
RFC822 http://www.w3.org/Protocols/rfc822/ says: "The field-body may be composed of any ASCII characters, except CR or LF. (While CR and/or LF may be present in the actual text, they are removed by the action of unfolding the field.)" Am I correct in understanding then that a mailing list-id may be composed of any ASCII characters? Thus this is a valid mailing list-id: ///*/etc/pw.txt Is this function an accurate validator for a mailing list-id? def is_valid_list_id(list_id): try: list_id.decode('ASCII') except UnicodeDecodeError: return False else: return True _______________________________________________ Mailman-Developers mailing list Mailman-Developers@python.org https://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org Security Policy: http://wiki.list.org/x/QIA9