def parse_ml_headers(headers):
 attrs = {}
 attrs['List-Archive'] = headers.get('List-Archive')
 attrs['List-Help'] = headers.get('List-Help')
 attrs['List-Id'] = headers.get('List-Id')
 attrs['List-Owner'] = headers.get('List-Owner')
 attrs['List-Post'] = headers.get('List-Post')
 attrs['List-Subscribe'] = headers.get('List-Subscribe')
 attrs['List-Unsubscribe'] = headers.get('List-Unsubscribe')
 return attrs

def parse_ml_headers ( headers ) : attrs = { } attrs [ 'List-Archive' ] = headers . get ( 'List-Archive' ) attrs [ 'List-Help' ] = headers . get ( 'List-Help' ) attrs [ 'List-Id' ] = headers . get ( 'List-Id' ) attrs [ 'List-Owner' ] = headers . get ( 'List-Owner' ) attrs [ 'List-Post' ] = headers . get ( 'List-Post' ) attrs [ 'List-Subscribe' ] = headers . get ( 'List-Subscribe' ) attrs [ 'List-Unsubscribe' ] = headers . get ( 'List-Unsubscribe' ) return attrs
parse the mailing list headers described in rfc 4021 .