summaryrefslogtreecommitdiff
path: root/Mailman/pythonlib (unfollow)
Commit message (Collapse)AuthorFilesLines
2001-07-10More updates for MM2.1a2, including describing the new Urgent: headerbwarsaw1-4/+11
feature, and the requirement for mimelib 0.4.
2001-07-10Integration of latest Spanish patches from Juan Carlos Rey Anaya.bwarsaw1-3189/+4758
2001-07-10Integration of latest Spanish templates from Juan Carlos Rey Anaya.bwarsaw2-27/+34
2001-07-08_shortcircuit(): Return self._stop as a default. This allows abwarsaw1-1/+1
runner.stop() method call to break the __oneloop() loop after any single message is processed.
2001-07-08Cleaner startup/restart/shutdown implementation. This allows thebwarsaw1-30/+48
sub-qrunners to cleanly exit themselves instead of potentially stopping them in the middle of processing a message. Specifically, sighup_handler(): Send SIGHUPs to the child processes instead of SIGINTs. start_lock_refresher(): Install our own SIGHUP handler, which simply toggles off an instance-based loop flag. The signal kicks us out of the sleep, so the next while test will return false and break us out of the loop, existing the lock refresher. No need to deal with KeyboardInterrupts. start_runner(): In the parent, just return the pid of the child. In the child, do the syslogging, and also install our own process's SIGHUP handler, which will call the qrunner's stop() method. This lets the qrunner break out of its loop at the next convenient place (i.e. after processing one of its files). Again, no need to deal with KeyboardInterrupts. master(): More accurate syslog messages. Also, make sure the children receive SIGHUP instead of SIGINT.
2001-07-06A bunch of new sites.bwarsaw2-1/+43
2001-07-06More names.bwarsaw3-3/+4
2001-07-06No longer necessary. qrunner is now a proper daemon and shouldn't bebwarsaw1-290/+0
invoked from cron.
2001-07-06Need to import sys!bwarsaw1-14/+18
change_options(): Fixed the call to ApprovedAddMembers() so that we're correctly passing through the values of the form variables send_welcome_msg_to_this_batch and send_notifications_to_list_owner.
2001-07-06get_sender(): Watch out for missing Sender: or From: fields, whichbwarsaw1-4/+15
cause None to be returned from self.__getitem__(). Keep looking through headers if that happens (this avoids a bug reported by Mentor Cana on messages with no Sender: header and USE_ENVELOPE_SENDER set to true). send(): If the message doesn't have a Message-ID (and it probably won't), craft one. This aids in debugging because the message-id will get logged to logs/smtp.
2001-07-06unique_message_id(): New function to craft a guaranteed unique Message-ID.bwarsaw1-0/+19
2001-07-06process(): Call syslog.write_ex() directly (instead of syslog.write()bwarsaw1-8/+8
implied by syslog.__call__()), passing in the MsgSafeDict instance to the kws argument. This works around the Python limitation that **kws in extended calls must be concrete dictionary objects.
2001-07-06LogMsg() -> write()bwarsaw1-3/+10
write(): Just call new function write_ex(), passing arguments through. write_ex(): Use explicit arguments to pass in the args tuple and kws dictionary. This is because Python requires **kws in extended calls to be concrete dictionary objects, not generic mapping objects. SMTPDirect wants to pass in an instance of (subclassed) UserDict, so it calls write_ex() directly. Also, stash the msg argument in local variable origmsg, which is used if we get an exception during string interpolation.
2001-07-06prepare_message(): Use Utils.unique_message_id() to generate thebwarsaw1-6/+13
Message-ID header. mcre: Message-ID headers crafted by Mailman now include a serial number. Recognize this, and also use a verbose regular expression so it's not so cryptic.
2001-07-06_open_list(): The lockp argument was unused, so remove it.bwarsaw1-1/+1
2001-07-05Removed qrunner cron script, as it has been obsoleted bybwarsaw1-2/+2
bin/mailmanctl and bin/qrunner.
2001-07-05SCRIPTS: added mailmanctl and qrunner.bwarsaw1-1/+1
2001-07-05Added a description of the new bin/mailmanctl and bin/qrunner scripts.bwarsaw1-0/+7