summaryrefslogtreecommitdiff
path: root/cron/mailpasswds (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move all cron scripts to the new Mailman.bin package layout and complete thebwarsaw2006-05-131-241/+0
| | | | | conversion to optparse style option parsing. Remove mailpasswds as password reminders will go away for MM2.2.
* back porting from 2.1.6tkikuchi2005-08-281-6/+9
|
* FSF office has moved. chdcking in for MAIN branch.tkikuchi2005-08-271-1/+1
|
* 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.
* 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.
* 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
* Jon Parise's patch to improve the usage() output for the command linebwarsaw2002-10-211-2/+6
| | | | | | 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.
* Add a -l / --listname option (which can appear multiple times) tobwarsaw2002-05-221-2/+18
| | | | limit password sending to a specific list.
* 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(): All owner refereces should point to the mailman-owner@dom.ainbwarsaw2001-11-201-5/+7
| | | | | | | | | | | address instead of the mailman-admin@dom.ain address. We don't want people contacting the site owner to be bounce processed. Also, Utils.get_site_email()'s second argument should no longer include the leading dash. Set the `errorsto' metadata to the mailman-bounces address, and add a `verp' flag in the metadata set to VERP_PASSWORD_REMINDERS.
* main(): If the site list is missing, write a log message to logs/errorbwarsaw2001-11-051-1/+10
| | | | | and exit with a non-zero status (so cron should let us know there's a problem).
* Ben Gertzfield's patch to hardcode the path to the python executablebwarsaw2001-09-071-1/+1
| | | | | | | | | | | | | into the script's #! line -- based on --with-python settings, without losing CVS revision history. #! /usr/bin/env python becomes #! @PYTHON@ which gets substituted for in configure.
* Massively rewritten so as to (hopefully) simplify the logic, and notbwarsaw2001-08-041-100/+109
| | | | | send the password reminder as if it's coming from the "first" public mailing list. Instead it comes from the "site list".
* Reorder the imports so mm_cfg is always the first module importedbwarsaw2001-07-271-0/+3
| | | | | | | | | | | | | | | after paths. Because these scripts are run from cron with "python -S" they must import mm_cfg before attempting to import mimelib; mm_cfg hacks sys.path to include site-packages which -S inhibits. For those scripts that already import mm_cfg, add a comment describing the import order dependencies. For those that didn't, add a comment about why it's being imported. Also, gate_news: Removed the _ContinueLoop docstring so translators have one less non-translatable docstring to worry about. Closes Thomas's SF patch #443803.
* All membership related attribute access should use the MemberAdaptorbwarsaw2001-07-191-2/+2
| | | | | | | API instead, e.g. GetUserOption() -> getMemberOption() GetUserSubscribedAddress() -> getMemberCPAddress()
* mail_passwords(): Fixed missing translation markings; found by Ousmanebwarsaw2001-07-021-1/+1
| | | | Wilane.
* main(): Do not send a password reminder to a user if they havebwarsaw2001-05-251-7/+9
| | | | | | | | | | | suppressed reminders for a particular list. The user will have to disable reminders for all lists they are members of if they really don't want to get any such messages. mail_passwords(): Convert away from the old-style HandlerAPI mechanism of sending the reminder message. Also, de-string-module-ification.
* mail_passwords(): subj is marked for translation. Call maketext()bwarsaw2000-12-261-2/+3
| | | | with the list's preferred language.
* mail_passwords(): Set the msgdata in DeliverToUser() to contain thebwarsaw2000-09-151-2/+7
| | | | | | | | | | "_nolist" volatile key, which indicates to the delivery pipeline that it shouldn't include list specific information (e.g. List-Id:). Closes SF bug #114127, Jitterbug PR#149. main(): DeliverToUser() requires the list to be locked, so be sure to lock a_public_list around the call to mail_passwords() otherwise exceptions will occur and lock turds will be left!
* main(): GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)bwarsaw2000-08-011-1/+1
|
* Update the copyright lines to include the years 1999 & 2000.bwarsaw2000-03-211-1/+1
|
* Oops, got order of addrs backwards in UserNotification() ctor.bwarsaw1999-12-021-1/+1
|
* mail_passwords(): port to new message delivery pipelinebwarsaw1999-12-021-30/+6
|
* Cosmeticbwarsaw1999-11-121-8/+12
|
* Two changes:bwarsaw1999-09-021-1/+16
| | | | | | | | - be sure to use the member's case-preserved subscribed address - watch out for any addresses that are in the password dictionary but are (for some unknown reason) not subscribed. Zap any such addresses found.
* Debugging stuff removed.bwarsaw1999-05-041-8/+8
|
* Revamped script now sorts first by virtual host ifbwarsaw1999-05-041-78/+105
| | | | | | | mm_cfg.VIRTUAL_HOST_OVERVIEW is true. This should resolve PR#5. Note that this is a debugging version and not /quite/ the final check-in.
* Thanks to Gerhard Gonter, who corrected the logic intended to obtain aklm1999-04-021-1/+1
| | | | | | public list to serve as the sender of the password notifications. (This arrangement is still ad-hoc, as my previous mailpasswds checkin message suggests.)
* On some RedHat Linuxes, there appears to be a problem with some cronsbwarsaw1999-01-131-0/+5
| | | | | | | | | | | | | | | | | | | | | | messing up their SIGCHLD handling. This would manifest as an IOError getting raised in the cmdproc.close() call of DeliverToList() in Deliverer.py. Thanks go Harald Meland for describing the real problem and giving the real fix. Thanks go to Greg Stein for testing this patch and verifying that it works. Deliverer.DeliverToList(): Undo previously checked in patch, which simply wrapped a try/except around the cmdproc.close() call and ignored errno=10 IOErrors. This was treating the symptoms, not the cause. All files in cron/: Added Harald's work around of the Linux bug by including these lines in every file: # Work around known problems with some RedHat cron daemons import signal signal.signal(signal.SIGCHLD, signal.SIG_DFL) It helps RedHat and doesn't appear to hurt on e.g. Solaris.
* main(): A small kludge to ensure that we use an advertised list, ifklm1998-11-011-1/+5
| | | | | | | | | | | | | | | any is available, for actually sending out the passwords reminders. Otherwise, an unadvertised list may be used (and will be, if there are no advertised ones on the system), putting its name in the list-id header, and so forth. The proper fix will be to not use a list object, at all, to do the sends - use Utils.SendTextToUser, or something, directly. This should be fixed before full release - we just need to identify the proper headers - who should be the sender, where should failure notices go, etc, etc. Hmm - it would be nice to have a special return address that would do the bounce processing, but look for and handle the bad address on *all* the lists to which it belongs...
* Using new routine to identify the admin address for a member,klm1998-10-171-6/+1
| | | | depending on whether or not the list is an umbrella...
* main(): When the list is an umbrella list for other lists, theklm1998-10-171-3/+5
| | | | | | recipients for password notices are the administrators of the member addresses - this way, the password will not be advertised to the sublist membership!
* Be a bit verbose when optional subscriber target list is specified -klm1998-09-091-3/+12
| | | | | | | print a line indicating user and list when one of the specified subscribers is found. Changed var name to "confined_to".
* Take an optional argument specifying target subscribers, and whenklm1998-09-091-2/+6
| | | | | | specified, ignore all others. This provides an easy way to inform users who have forgotten exactly what they're list memberships are (which i'm about to do for someone).
* Add "Precedence: bulk" header to password reminders, so they don'tklm1998-08-141-1/+2
| | | | trigger 'vacation' style programs. (I thought i already added this!)
* MailAllPasswords(): Put the table at the bottom of the message so thebwarsaw1998-07-061-3/+3
| | | | rest of the text can be wrapped/filled but not the table.
* Moved the raw flag to the maketext() callbwarsaw1998-07-061-3/+2
|
* More provisions to prevent exhausting the processes queue. We do aklm1998-07-021-5/+27
| | | | | | | | | | | | wait() within the send loop every PAUSE_FREQUENCY users, in order to wait for the deliver process to finish queuing up the messages. Also, the password message text was getting mangled by the word wrapping in SendTextToUser. I added 'raw=1' to the call. (I should say that i really don't think that SendTextToUser should be in the business of wrapping or filling text - i thought Utils.maketext, when deliberately applied, was going to take care of all that? Ah - i bet i'm just behind in my checkouts...)
* Packagizedbwarsaw1998-06-191-32/+13
|
* Add Unlock() calls where appropriate, and add lock = 0 to MailListviega1998-06-131-8/+1
| | | | constructor actuals when the list doesn't need to be locked.
* Skip lists where send_reminders is 0.viega1998-06-121-0/+2
|
* 1. Use the standard Python invocation #! line to get the interpreterbwarsaw1998-05-261-6/+3
| | | | | | | | | | | from $PATH 2. Do no direct sys.path munging in this file. Import the `paths' module, which is created during the configure process, and which performs all necessary path munging (and exports some useful variables too). 3. Remove RCS crud
* Fixed a typo in the zipcode.viega1998-05-261-2/+2
|
* Sending the password notices to -admin addr if new list optionmailman1998-05-261-4/+9
| | | | reminders_to_admins is set.
* Added copyright notices to all source files where I am legally entitled to ↵viega1998-05-251-1/+16
| | | | | | | do so. Added a copy of the GNU GPL. Added information about mailman-users in README, and reworded some text in there (made the credits less verbose... perhaps they should move to a credits file?)
* Push the main code into a function, instead of inline.mailman1998-04-101-22/+26
|
* Preparing to package a distribution - add __version__ info.mailman1998-04-091-0/+2
|
* Include an "X-No-Archive: yes" header, for those messages that getklm1998-04-071-1/+2
| | | | sent to a list-archive!