summaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* run_main(): A simplification -- I want to try to not pre-loadbwarsaw2001-12-311-10/+0
| | | | | | | | | Mailman/pythonlib/cgi.py because I'd like for Mailman to start using the default Python module now that we require at least Python 2.0 (or should that be Python 2.1?). I'm sure any disparity between the cgi.py modules will show up in beta testing. But if it looks okay, I'll remove our copy of cgi.py.
* In order to make the list alias -> script mapping more consistent,bwarsaw2001-11-304-254/+1
| | | | | | | | | | | | | | | | | | | we've renamed mailcmd to request and mailowner to owner (through some SF-assisted CVS repo magic). We've also moved scripts/auto to contrib/auto since it's an obsolete way of doing the auto-aliasing in Postfix. We need to update mail-wrapper.c for the new list of acceptable script names. Note that there are still two abberations: - messages posted to just `listname' go to the post script - messages posted to listname-admin go to the bounces script The latter, listname-admin may eventually go away. Note that this requires you to regenerate your aliases!
* Because the CommandRunner no longer processes -owner messages, we needbwarsaw2001-11-202-34/+40
| | | | | | | | | to do a little more work here. Specifically, we need to add an explicit pipeline to the message's metadata, then we can send the message through the normal incoming queue (i.e. we override the incoming queue's default pipeline). We also set the envsender attribute to point to the -bounces address for the list so we can handle any bounces to the list's owners.
* Code cleaningbwarsaw2001-11-202-2/+6
|
* The script that listens on the -bounces address for a list.bwarsaw2001-11-201-0/+61
|
* SCRIPTS: add the bounces script.bwarsaw2001-11-201-1/+1
|
* Since these scripts are always run from the wrapper, they don't need abwarsaw2001-09-078-8/+8
| | | | #! line.
* Get rid of answer_majordomo_mail. It's seriously broken in MM2.1, andbwarsaw2001-08-042-42/+1
| | | | of limited value, IMO. Haven't we already taken over the world? :)
* main(): Be sure to set the _plaintext message metadata key to informbwarsaw2001-06-278-9/+16
| | | | | the Switchboard that it should save the message as plain text and not as a pickle.
* run_main(): Don't stick Mailman.i18n._ in the builtins.bwarsaw2001-06-271-11/+2
|
* main(): Don't set the `received_time' metadata here; it's set in thebwarsaw2001-05-141-3/+1
| | | | queue runner.
* Add the join and leave scripts.bwarsaw2001-05-111-2/+4
|
* coding stylebwarsaw2001-05-112-4/+2
|
* intermediatebwarsaw2001-05-111-0/+61
|
* intermediatebwarsaw2001-05-111-0/+61
|
* main(): Set the message metadata `received_time' to the current time.bwarsaw2001-05-012-2/+10
| | | | | Note that ToArchive.py will set this if it isn't present in the metadata already, however that might incur hold and other delays.
* Lots of updates to the New Order.bwarsaw2001-03-012-64/+42
| | | | | | | | | main(): Convert to the new Switchboard mechanisms. This means we neither need to instantiate the mailing list, nor create a Message object from stdin. A side effect of this change is that we can't efficiently determine whether this message was destined for the -owner or -admin address (since this script bogusly handles both). We defer this decision to the CommandRunner.
* Update copyright yearsbwarsaw2001-02-282-2/+2
|
* Next round of big i18n patches.bwarsaw2001-02-282-44/+30
| | | | | | | main(): Change the error messages; removed old cruft (we never need to create the MailList object, we just need a valid listname -- we also don't ever need to create a Message object, stdin is fine); change the enqueuing code to use the new Switchboard mechanism.
* import Mailman.i18n._bwarsaw2001-02-161-0/+1
|
* Convert to using the new switchboard interface.bwarsaw2001-02-152-49/+18
|
* main(): Explicitly queue the message to INQUEUE_DIR (see changesbwarsaw2000-12-205-7/+7
| | | | described in qrunner for details).
* main(): Some fixes to handle situations such as sending directly tobwarsaw2000-12-201-8/+27
| | | | | | the non-extension address, and for handling listnames with dashes in them. Also, do better matching of incoming message's target domain with the list's domain.
* Add `auto' script.bwarsaw2000-12-081-1/+1
|
* intermediatebwarsaw2000-12-081-1/+4
|
* Script which can be used to make Postfix automatically recognize newbwarsaw2000-12-081-0/+92
| | | | mailing lists.
* run_main(): Gross and temporary hack to put `_' in the builtins. It'sbwarsaw2000-12-071-0/+9
| | | | | too magical so eventually explicit imports will be added to the appropriate modules.
* Modifications to use extended print syntax.bwarsaw2000-12-072-6/+6
|
* Turn STEALTH_MODE back on for the 2.1 development cycle.bwarsaw2000-12-071-17/+17
| | | | Modifications to use extended print syntax.
* In preparation for 2.0 final, turn on STEALTH_MODEbwarsaw2000-09-291-1/+1
|
* run_main(): Moved the initialization of logger local to None outsidebwarsaw2000-09-271-4/+4
| | | | | the try block. Should have no practical effect, but makes debugging easier.
* get_message(): The filter programs now live in VAR_PREFIX/filters.bwarsaw2000-09-221-1/+1
| | | | Closes David Champion's patch #101331.
* main(): Add the `tolist' flag to the message data, so we can trackbwarsaw2000-09-081-1/+1
| | | | | messages posted to the list (as opposed to message sent to the -admin, -owner, -request addresses, or internally generated).
* print_traceback(), top-level: Remove the Cache-control: and Expires:bwarsaw2000-07-221-4/+0
| | | | | headers. These caused problems with the back button and didn't really solve an existing problem.
* main(): If the message came from the -owner address, set the toownerbwarsaw2000-07-222-6/+22
| | | | | | flag. If it came from the -admin address, set toadmin. The test is against the To: field and checks for string equality with mlist.GetOwnerEmail().
* print_traceback(), top-level: Include HTTP headers "Cache-control:bwarsaw2000-07-201-0/+4
| | | | no-cache" and "Expires: 0" to inhibit caching.
* Add Emacs helper at top of file.bwarsaw2000-07-191-0/+1
|
* All three scripts have now been changed to always quickly queue theirbwarsaw2000-06-145-127/+75
| | | | | | | | | | | | messages to the qfiles directory. This once and for all avoids the possibility that we hit the MTA's command time limit. The mailing list objects are never locked so we can't time out there. They don't need to be locked for message queuing. The penalty is that we do more disk i/o for every message destined to the list, the list-owner or list-request, and messages are not delivered immediately. Both are probably worthy tradeoffs for absolutely guaranteeing that messages never get lost.
* Added a variable STEALTH_MODE which can be set to true to inhibitbwarsaw2000-06-051-38/+49
| | | | | traceback, system, and environment information to the web pages. The information is always still printed to the log files.
* main(): No need to explicitly enqueue the message, sincebwarsaw2000-05-221-5/+2
| | | | | DeliverToList() will now do this automatically if any pipeline module fails.
* main(): Takes no arguments.bwarsaw2000-05-222-2/+2
|
* Robustification of handling mail commands. If any of the followingbwarsaw2000-05-092-8/+44
| | | | | | | fails -- the list name is missing or bogus, or the list lock cannot be acquired within the LIST_LOCK_TIMEOUT time frame -- the message is enqueued for qrunner to try again later. Previously, the message was simply lost!
* Robustification of posting. If any of the following fails -- the listbwarsaw2000-05-082-20/+56
| | | | | | | | | name is missing or bogus, or the list lock cannot be acquired within the LIST_LOCK_TIMEOUT time frame -- the message is enqueued for qrunner to try again later. Previously, the message was simply lost! If DeliverToUser() returns a true value, then this means the message delivery was not completed, and again, the message is enqueued.
* Robustification of posting. If any of the following fails -- the listbwarsaw2000-05-081-38/+53
| | | | | | | | | name is missing or bogus, or the list lock cannot be acquired within the LIST_LOCK_TIMEOUT time frame -- the message is enqueued for qrunner to try again later. Previously, the message was simply lost! If DeliverToList() returns a true value, then this means the message delivery was not completed, and again, the message is enqueued.
* print_environment(): Reveal even more secrets about Mailman'sbwarsaw2000-04-061-7/+37
| | | | | | | | operating environment, namely some key sys module attributes (version, prefix, etc.). We're going to need a way to scale back this reporting for the Web pages in case folks do not want to reveal this much information. And hey, since 2.0 will have no bugs, this stuff is all moot anyway, right? :)
* run_main(): During call to the Cgi's main routine, set sys.stderr tobwarsaw2000-04-041-7/+5
| | | | | | | | the logger object so they can simply sys.stderr.write() to get error messages out to logs/error. No need to set sys.__stderr__ and sys.__stdout__; we're requiring at least Python 1.5.2 now.
* Removed the debugging messages from the main script.bwarsaw2000-03-281-3/+3
|
* Update the copyright lines to include the years 1999 & 2000.bwarsaw2000-03-217-7/+7
|
* Remove the commented out extended open() function, since Python 1.5.2bwarsaw2000-03-211-30/+5
| | | | is going to be required now.
* main(): set the `torequest' attribute to 1 on the message object.bwarsaw2000-02-262-0/+2
|