summaryrefslogtreecommitdiff
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* All these files have been moved to the Mailman/Cgi package directorybwarsaw1998-06-1911-2353/+0
|
* All these files have been moved to the Mailman directory (and some renamed)bwarsaw1998-06-1929-6424/+0
|
* Fixed a typo that probably kept it from loading.viega1998-06-161-4/+3
|
* From the error message, and what I've learned about base64, my bestviega1998-06-142-8/+6
| | | | | | | | | guess about the transient errors (ie, some people get them, some people do not) is that sometimes the base64 encoding can cause \n's to get in the string, which the mime stuff will treat as a newline. So I replace \n w/ @ before putting it in the cookie, and do the reverse before checking the cookie. Hopefully we won't hear about this problem again.
* There's now a global USE_CRYPT variable. It *should* be set by theviega1998-06-142-2/+10
| | | | | | | autoconf stuff. Basically, the autoconf script should fire up Python and see if crypt can be imported. Of course, if a previous installation has a different value than configure determined, it should be used instead, otherwise stuff will mess up.
* Provides a method wrap_func(func, debug, print_env). If debug is off,viega1998-06-141-0/+23
| | | | | | | | | the StampedLogger is initialized. If debug is on, or the StampedLogger errors, func is run in a try-except block. If there's an error, it's printed to the web page, along with the environment if print_env is on. Based off Michael McLay's subscribe script, but I wanted to avoid as much code duplication as possible, which led to this strategy.
* Added debug.py on suggestion from Michael McLay. Added hisviega1998-06-141-0/+48
| | | | | | | print_trace() function essentially verbatim (which is actually Ken's code, so no need for an assignment, though it may be a good idea anyway). Added my own print_environ() call since Michael didn't provide one.
* Modified to install the stuff in Cgi. It's probably not the right wayviega1998-06-141-1/+11
| | | | | | to do it, but I did want to at least install something that works (I.e., I fully expect Barry to say, "what a hack, I'm going to do it right!").
* These are the files that used to be in ../cgi, except they no longerviega1998-06-1411-0/+2356
| | | | | handle logging to an error file, and no longer import paths. Also, any checks for __main__ have been removed.
* Moved _mime_separator from InitVars to InitTempVars.viega1998-06-131-5/+2
| | | | I thought that got redone by Ken??
* Added support for flock.pyviega1998-06-131-9/+4
|
* InitTempVars() added.viega1998-06-131-2/+2
|
* Added support for flock.py and an InitTempVars() method that will getviega1998-06-131-25/+23
| | | | called every time since InitVars no longer does...
* Sometimes I miss type checking... fixed a collision between a methodviega1998-06-131-6/+7
| | | | and a variable.
* New file locking class that is, in theory, portable. Since this isviega1998-06-131-0/+100
| | | | | | code that could easily be independant of the Mailman library, I use the Python std lib naming conventions of all lowercase method names instead of the mixed-case way in which most of Mailman is done.
* Added support for send_welcome_msg.viega1998-06-123-1/+14
|
* Added support for a send_reminders variable that controls whetherviega1998-06-121-5/+8
| | | | reminders for that particular list get sent.
* Added default entries for ANONYMOUS LIST (forgot to do that last time)viega1998-06-121-1/+6
| | | | and SEND REMINDERS. Bumped the data file version up by 1.
* Fixed a bug that arose from changing file format versions to a number.viega1998-06-121-42/+45
| | | | | | | | Commented out code that expected a string. It's now a number just so every time mailman starts up there isn't a whole lot of work done in checking the version, etc. Our numbers should stick with integers... other people making local mods should probably use decimal places...
* Made Scott's fixes so that angle brackets are given when required (inviega1998-06-121-3/+3
| | | | RCPT and MAIL commands).
* digest_send_periodic now uses a Radio button instead of a number box, sinceviega1998-06-111-2/+3
| | | | it is currently a boolean variable.
* The data file version is now different from the mailman version. I'mviega1998-06-111-21/+28
| | | | using a number so I can easily tell if something is outdated.
* Changed the way InitVars() is called so that it only gets called onviega1998-06-111-11/+14
| | | | | | | | list creation or if the version number of the data file has changed. As a side-effect, if the data file *does* change, Load() will actually happen twice, once to determine there's been a change, then a second time, because InitVars() writes over what we just read in, which is bad. It could be fixed, and probably should be some other time.
* I added a variable 'anonymous_list' that, if set, causes From, Senderviega1998-06-111-1/+9
| | | | | | | | | | | and Reply-To to get stripped out and replaced with: From: list-admin@... This one could potentially be something where if the admin enables anonymous posting, it could be a per-sender option. However, I added this because the guy from the Dave Matthews Band home office wants to be able to post to an announcement list without changing his email setup, yet not get email in his personal mailbox from tons of fans. I figure others may have similar needs.
* Applied minor changes across 4 lines submitted by Janne Sinkkonenviega1998-06-111-4/+4
| | | | | <janne@avocado.pc.helsinki.fi>. The changes fix regular expression based filtering of headers.
* Fixed a bug where sometimes a leading / is missing from PATH_INFO.viega1998-06-051-1/+3
|
* The site password wasnt working because:viega1998-06-031-1/+1
| | | | | | 1) the password data file was changed to g-w (which is good) 2) the open(...) used "r+" instead of "r" (which is bad) I changed #2...
* Whoops, I forgot to check these in. They're changed to handleviega1998-06-036-16/+17
| | | | | relative paths, mainly GetScriptURL->the appropriate replacement. Now I'm done w/ checkins, and I'm going to test the current snapshot.
* Removed the method GetScriptURL. Replaced it with two methods:viega1998-06-031-4/+7
| | | | | | GetRelativeScriptURL(script) GetAbsoluteScriptURL(script) Changed some calls to GetScriptURL to the appropriate new form.
* Added a method: GetNestingLevel(), which returns how many ../'s areviega1998-06-031-0/+11
| | | | | needed to get back to http://xxxx/mailman/ based on the PATH_INFO environment variable.
* Fixed a bug in wrap where wrap would error if the length of the stringviega1998-06-031-1/+1
| | | | being wrapped was the same as the column parameter.
* Don't copy over the list data file if it doesn't exist.viega1998-06-021-2/+3
|
* Multi-line headers won't have a colon in every line, so don't assume there ↵viega1998-06-021-2/+2
| | | | will be one.
* Pretty minor bugfixing. Use NewsMessage instead of the mail message soviega1998-06-021-18/+41
| | | | we don't write any unwanted headers, etc.
* Added a readline() method to classes, since it turned out nntplib usedviega1998-06-021-2/+46
| | | | | | readline() and not readlines() as advertised. Also, added a subclass to IncomingMessage called NewsMessage, making it easier to add news-specific headers, etc.
* No longer pass in the stupid news parameter to DeliverToList(), sinceviega1998-06-021-3/+3
| | | | that parameter is dead.
* No longer take a news parameter in .DeliverToList(), and no longer callviega1998-06-021-4/+1
| | | | the news posting code. That was a bad place for it to go...
* Added a lock parameter to the constructor of MailList, which determinesviega1998-06-021-5/+9
| | | | | | whether Lock is implicitly called. Defaults to 1. Also put the call to post to news in its proper place (next to the digest + archive calls).
* Whoops, forgot to check in the new default variables for the adminviega1998-05-311-2/+10
| | | | cookie stuff.
* configure.in: 1.0b5 -> 1.0b4viega1998-05-311-1/+1
| | | | | mm_defaults.py.in: 1.0b3 -> 1.0b4 Shouldn't the version in mm_defaults be generated automatically?
* As a safety measure, copy over the list config file to config.lastviega1998-05-311-1/+7
| | | | | | before we write out a new one. I got hosed once on my big list when the process got killed by some load dog software when it was in the middle of writing out the database.
* Add .readlines() to both message classes.viega1998-05-311-2/+13
| | | | | This was motivated by the fact that nntplib expects a file object on which it calls readlines().
* Pass the flag to .DeliverToList() that says, "don't repost this mailviega1998-05-311-5/+5
| | | | to news".
* .DeliverToList calls the Mail->News gater unless a flag is passed sayingviega1998-05-311-1/+3
| | | | that the current message is inappropriate to gate.
* Inherit the gateway mixin, and do the right initialization.viega1998-05-311-1/+4
|
* Add mm_gateway to the list of modules.viega1998-05-311-1/+2
|
* Added a mixin that allows for Mail->News and News->Mail gateways. Iviega1998-05-311-0/+119
| | | | | | | | | | | | can't test whether the actual gating both ways works until I get access to an nntpd from list.org (which will be monday at the latest). However, at the very worst, the code doesn't impede mailman's normal operation. The only potential problem I can see w/ all the code I'm checking in is that one could gate from News to Mail, and have the list hold the post for approval and/or bounce the post, and notify the person posting to a newsgroup. That's probably not right. However, that shouldn't be too hard to fix.
* Ah, I saw the "More condensed" interface to md5, and used that instead.viega1998-05-301-3/+1
|
* Added mm_crypt, which trys to import crypt, and provides a wrapperviega1998-05-303-5/+13
| | | | | | | interface to an md5 digest if the import fails. This way, we don't have to tell people to recompile python if they compiled it out of the box. (since crypt is no longer in by default). mm_security now uses mm_crypt instead of crypt.
* Integrated Scott's cookie code into the distribution.viega1998-05-303-10/+31
| | | | | | Note that it does have one problem... If you have cookies off, you have to log in every time, plus your changes don't take effect! That definitely needs to be fixed.