summaryrefslogtreecommitdiff
path: root/modules/mm_utils.py
diff options
context:
space:
mode:
authorklm1998-03-08 05:06:12 +0000
committerklm1998-03-08 05:06:12 +0000
commit957d8bf7c672d7821c5f832d982b976ec996af1a (patch)
tree3ef9125608467766e8928cc981783d73d56a3fa3 /modules/mm_utils.py
parentce936ecf1077dc040de7b4e8f015c253ed8dbd85 (diff)
downloadmailman-957d8bf7c672d7821c5f832d982b976ec996af1a.tar.gz
mailman-957d8bf7c672d7821c5f832d982b976ec996af1a.tar.zst
mailman-957d8bf7c672d7821c5f832d982b976ec996af1a.zip
New privacy (ant-spam) feature - bounce_matching_headers option takes
a string with "field: matchexp" lines, and, if set, messages with header fields matching matchexp are held for approval. MailList.parse_matching_header_opt separates the header and matchexp using the first ':' (and trims leading whitespace off of the matchexp), and MailList.HasMatchingHeader() does the check. And of course, MailList.Post() does the check, MailList.LogMsg(): given the log category, add an entry to the log file for that category. Files all situated in setting of (new) config opt, LOG_DIR. (Stored the open files on a list, potentially useful when running as a long running daemon...) MailList.ApprovedAddMember(): gets a check for existing membership - possible when more than one subscription for the same address is okayed from the same pending batch of subscription requests - before it was creating multiple subscriptions, and things blew up when attempts were made to revoke the subscriptions... Bracketed all potentially file-creating 'open()'s (MailList.CreateFiles(), .Save(), .Lock(), .LogMsg()) in os.umask suspension/resumption, so that the files are created with the intended permissions. Added a repr which indicates the lock state of the file. (Helpful for my exploratory programming.) Reworded some option descriptions.
Diffstat (limited to 'modules/mm_utils.py')
0 files changed, 0 insertions, 0 deletions