summaryrefslogtreecommitdiff
path: root/modules/mm_digest.py
diff options
context:
space:
mode:
authormailman1998-03-20 17:59:51 +0000
committermailman1998-03-20 17:59:51 +0000
commitcbaf655c487515bf43ffd203c19225d1d460c138 (patch)
treef405ca33dfb45b31f846e4476a92289910feb774 /modules/mm_digest.py
parentbee5eb485b0584ea4dd9df29c767d4deeaa694e8 (diff)
downloadmailman-cbaf655c487515bf43ffd203c19225d1d460c138.tar.gz
mailman-cbaf655c487515bf43ffd203c19225d1d460c138.tar.zst
mailman-cbaf655c487515bf43ffd203c19225d1d460c138.zip
This is the fix i mentioned in my last checkin (not mm_digest).
Use a python-lib tempfile, instead of ginning one up distinguised by pid. The problem with the old method is that the same process - eg, senddigest - may be cycling through many lists, which means that all the lists would use the same tempfile name. And deliver, having opened the file for reading, would get it pulled out from under it when, eg, senddigest got to having mm_deliver prepare digest for the next list. tempfile.mktemp() specifically finds a filename that is not in use. I'm leaving in commented-out text for some special membership- migration notices, for use later today or tomorrow, when i move over the rest of the lists.
Diffstat (limited to 'modules/mm_digest.py')
0 files changed, 0 insertions, 0 deletions