~barry/mailman/events-and-web

« back to all changes in this revision

Viewing changes to src/mailman/handlers/rfc_2369.py

  • Committer: Barry Warsaw
  • Date: 2012-04-28 02:32:22 UTC
  • Revision ID: barry@list.org-20120428023222-53owunvh9yw5ewv3
 * List-Post should be NO when posting is not allowed. (LP: #987563)

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        'List-Subscribe'  : subfieldfmt.format(listinfo, mlist.join_address),
75
75
        })
76
76
    if not msgdata.get('reduced_list_headers'):
77
 
        # List-Post: is controlled by a separate attribute
78
 
        if mlist.include_list_post_header:
79
 
            headers['List-Post'] = '<mailto:{0}>'.format(mlist.posting_address)
 
77
        # List-Post: is controlled by a separate attribute, which is somewhat
 
78
        # misnamed.  RFC 2369 requires a value of NO if posting is not
 
79
        # allowed, i.e. for an announce-only list.
 
80
        list_post = ('<mailto:{0}>'.format(mlist.posting_address)
 
81
                     if mlist.include_list_post_header
 
82
                     else 'NO')
 
83
        headers['List-Post'] = list_post
80
84
        # Add RFC 2369 and 5064 archiving headers, if archiving is enabled.
81
85
        if mlist.archive:
82
86
            for archiver in config.archivers: