summaryrefslogtreecommitdiff
path: root/cron
Commit message (Collapse)AuthorAgeFilesLines
* The start of a setuptools conversion. All the Makefile.in and autoconfBarry Warsaw2007-07-131-78/+0
| | | | artifacts are removed, as is the C files which we will no longer need.
* Update copyright years.bwarsaw2007-01-191-1/+1
|
* Move all cron scripts to the new Mailman.bin package layout and complete thebwarsaw2006-05-139-1295/+9
| | | | | conversion to optparse style option parsing. Remove mailpasswds as password reminders will go away for MM2.2.
* - fixed misspelling of propagate in loginit.initialize call in cron/disabled.msapiro2006-05-091-1/+1
| | | | | (should the cron scripts propagate log messages to stderr?) - updated scripts/* scripts to use new logging rather than stderr writes.
* - Fixes to further remove the old Syslog from bin and cron scripts. Note thatbwarsaw2006-04-242-59/+50
| | | | | | | | | | | I didn't update cron/mailpasswds because that is going away. cron/disabled and cron/gate_news are only minimally tested. - Instead of using the RotatingFileHandler for our logs, use our own ReopenableFileHandler, which only minimally derives from FileHandler and implements a reopen() method. I think it's generally better to leave file rotation to external tools such as logrotate. - Remove some Python 2.1 compatibility stuff. - Ignore .mo files in messages/vi/LC_MESSAGES
* Now that we've converted from CVS to Subversion, remove CVS cruft frombwarsaw2006-04-151-2/+0
| | | | | the trunk. This serves also to test write permission to the svn repository, and tests email notifications.
* back porting from 2.1.6tkikuchi2005-08-283-19/+52
|
* FSF office has moved. chdcking in for MAIN branch.tkikuchi2005-08-278-8/+8
|
* main(): If we get NotAMemberError when sending the next notification,bwarsaw2003-08-181-5/+15
| | | | log this and delete the member.
* tounicode(): New function to coerce to unicode after the fact (yes,bwarsaw2003-06-191-0/+12
| | | | | | | | | | | | | | this is a hack, everything should be turned into unicode at the edges -- sigh, that's a mm3 solution). main(): Some fixes for i18n, based on debugging w/Peer. Specifically coerce table entries to unicode to catch non-ascii passwords (didn't think about that! :). Also, turn the template into unicode so it combines properly with other texts. Closes SF 755190. Back port candidate.
* open_newsgroup(): mlist.nntp_host may now be a host:port pair.bwarsaw2003-05-121-2/+12
|
* main(): It's possible for old databases to have password-less membersbwarsaw2003-05-021-1/+9
| | | | in them. In that case, log it and continue.
* pending_requests(): Be sure reason is translated. Closes SF bugbwarsaw2003-04-191-0/+1
| | | | #716702.
* usage(): Added -h / --help text.bwarsaw2003-03-111-7/+44
| | | | | | pending_requests(): The list of pending texts could contain a mixture of Unicode, ASCII 8-bit strings, and non-ASCII 8-bit strings. We must convert all these to Unicode before joining them.
* Update copyright yearsbwarsaw2003-03-111-1/+1
|
* SF patch #683906, add $DESTDIR to install target, by Ademar de Souza Reistwouters2003-03-111-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Jr, after much checking and rechecking (and some massaging) by me. Checking in now before I fall asleep and forget what all this was for. This patch adds the ability to 'make DESTDIR=/some/dir/tree install' that doesn't influence the paths stored in e.g. Defaults.py at all, which is of good use for various package managers. It is not all that package managers must do, however! Running make install with DESTDIR set means bin/update is never run, and mm_cfg.py is always written; package managers should make sure the appropriate post-installation is done, and that mm_cfg.py is treated as a config file. This patch inadvertently fixes some bogus whitespace: 8-spaces where surrounding code used tabs. The difference was harmless because the 8-spaces were used inside shell-continued-oneliners, but it is confusing and could lead to future harm. I'm too tired to make those two or three changes in a separate checkin, sorry. This patch also assumes the various packages that are installed using distutils do not record (or rather, use) their installation paths anywhere, but this seems to hold true at least for the moment. Also, I've done so many slow cvs diff's, I'm wondering when we'll switch to Subversion. Unfortunately, I've also done so many 'cvs diff -c > file; patch -p0 -R < file's to switch back and forth between patches and change sets, I'm wondering when we'll switch to Aegis as well. :-P
* main(): Patch # 680000 by Jon Parise to restore the check of thebwarsaw2003-02-041-0/+4
| | | | user's SuppressPasswordReminder flag.
* main(): Treat addresses case-insensitively for grouping purposes.bwarsaw2003-01-021-9/+7
|
* main(): Use DEFAULT_EMAIL_HOST unless DEFAULT_HOST_NAME was overriddenbwarsaw2002-12-021-2/+4
| | | | in mm_cfg.py
* Move the import of Charset to after the import of paths, so we pick upbwarsaw2002-10-281-4/+4
| | | | Mailman's copy of the email package instead of Python's.
* Whitespace normalizationbwarsaw2002-10-281-6/+6
|
* pending_requests(): Include the Subject header in the pending summary.bwarsaw2002-10-281-2/+4
|
* pending_requests(): The requests.pck database may have Unicode stringsbwarsaw2002-10-251-1/+19
| | | | | | | | | | | | | in them, say if an encoded name appeared in a From header. But maketext() may return byte strings with non-ascii characters in them, and concatenating these two types of strings is a no no. The local fix (implemented here) is to make sure that pending_requests() returns a byte string with no characters that are illegal in the list's preferred language's charset. The longer term fix probably ought to be that we use Unicode everywhere and that maketext() returns a Unicode.
* Jon Parise's patch to improve the usage() output for the command linebwarsaw2002-10-216-13/+37
| | | | | | and cron scripts. When code/status == 0, there's no error (it's likely --help output) so send that to stdout. Otherwise, it's an error and the output goes to stderr.
* In the LogStdErr() call, we don't need to pass in the tee argument,bwarsaw2002-10-211-1/+1
| | | | since the default is fine.
* open_newsgroup(): SF bug # 620033 indicates that an IOError can bebwarsaw2002-10-151-5/+5
| | | | | | raised in the NNTP() constructor. Just catch it, log it, and move on. Also, whitespace normalization.
* poll_newsgroup(): Eek! Typo! The intent was definitely to remove anybwarsaw2002-09-061-1/+1
| | | | existing X-Originally-To header before we place our own there.
* main(), usage(): Added support for command line arguments -h/--helpbwarsaw2002-08-281-2/+43
| | | | and -l/--listname.
* Added a -f / --force switch to force notifications to members who havebwarsaw2002-08-091-11/+18
| | | | already been notified within the bounce_you_are_disabled_warnings_interval.
* main(): Get rid of the phantom "moderator requests" messages. Fix bybwarsaw2002-07-131-1/+1
| | | | Fil.
* Add options to also send disabled notifications for users who havebwarsaw2002-05-281-43/+96
| | | | | | | | been disabled by themselves, the list owner, or for unknown (legacy) reasons. By default we only notify `bounce disabled' members, but you could now do notifications for any other reason. Also, fix the -l/--listname option parsing.
* main(): While we're at it, cruise through thebwarsaw2002-05-281-18/+30
| | | | | hold_and_cmd_autoresponses dictionary to see if any entries can be evicted (we only hold such data for a single day).
* Add a -l / --listname option (which can appear multiple times) tobwarsaw2002-05-221-2/+18
| | | | limit password sending to a specific list.
* Backing out the last two patches. This wasn't the right place to makebwarsaw2002-05-091-9/+2
| | | | this change.
* main(): Rework the resetting of a member's bounce info, since thebwarsaw2002-05-091-4/+6
| | | | setBounceInfo() call must be made with the list lock acquired.
* main(): If the member's bounce info is old-style, simply reset it.bwarsaw2002-05-071-0/+5
| | | | It's totally useless to us.
* Share a single nntp connection amongst all lists with the samebwarsaw2002-04-281-9/+29
| | | | | | | | | | | | | | | | nntp_host. Also, clean up some exception handling. Specifically, open_newsgroup(): Cache the connection object. clearcache(): New function to clean things up at script exit. poll_newsgroup(): Catch all NNTPErrors, not just (obsolete) error_temp. process_lists(): Catch all socket and nntplib errors when opening the newsgroup. main(): Be sure to clear the nntp connection cache when done.
* poll_newsgroup(): GetAdminEmail() is gone so replace this with morebwarsaw2002-03-271-2/+5
| | | | appropriate addresses.
* main(): GetAdminEmail() is gone so replace this with more appropriatebwarsaw2002-03-271-2/+3
| | | | addresses.
* pending_requests(): We don't need to compare the length of the infobwarsaw2002-03-261-14/+4
| | | | | package to know how to unpack the request record. bin/update should now canonicalize them.
* Update copyright years.bwarsaw2002-03-164-4/+4
|
* pending_requests(): Slightly better formatting when there's abwarsaw2002-03-151-2/+3
| | | | fullname.
* main(): Pass the list's preferred language to the UserNotificationbwarsaw2002-02-281-3/+4
| | | | constructor so that the message gets the proper charset settings.
* main(): A couple of i18n fixes. In order to translate the Subject:bwarsaw2002-02-281-4/+14
| | | | | | | | header into the same language that the password reminder body is getting translated to, we need to temporarily set the i18n language around the calculation of the Subject: header. We also need to pass the user's suspected language <wink> into the UserNotification() constructor.
* main(): The .Save() call should be in the try: clause.bwarsaw2002-02-261-2/+2
|
* Update imports for the new rules on shadowing standard librarybwarsaw2002-02-231-7/+5
| | | | | modules. Specifically, import the email package /after/ we've imported paths.
* main(): Add a sweep & cull step before sending disabled notifications.bwarsaw2002-01-291-1/+30
| | | | | | | Here, we're looking for members who are not yet disabled, but who have a bounce score >= the threshold. This can happen if the list owner lowers the threshold. There's no sense in waiting until another bounce is received on the member before we disable them.
* Fix typo in autoconf substitution. Found by Dan Ohnesorg.bwarsaw2002-01-061-1/+1
|
* Add calls for cron/disabled to send out the you-are-disabled notices.bwarsaw2001-12-272-3/+9
| | | | | | | Send these out at 9am localtime. Also, change the admin reminders to run at 8am local time instead of 10pm local time.
* New cron script to search for disabled-by-bounce memberships and sendbwarsaw2001-12-271-0/+116
| | | | re-enable reminders when they're due.