summaryrefslogtreecommitdiff
path: root/Mailman/pythonlib/cgi.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2000-09-27run_script(): Generalize the filtering out of environment variables.bwarsaw1-6/+27
We now discard $PYTHONHOME and $PATH as well as the previously discarded $PYTHONPATH (which we later hand craft). Just a bit of extra paranoia.
2000-09-27run_main(): Moved the initialization of logger local to None outsidebwarsaw1-4/+4
the try block. Should have no practical effect, but makes debugging easier.
2000-09-26checkarchivedbs(): Don't bomb out if there are some nondirectories inbwarsaw1-1/+1
the private archive dir.
2000-09-25process(): Darrell Fuhriman notes that the List-Archive: header'sbwarsaw1-2/+3
value needs to be wrapped in angle brackets.
2000-09-25process(): Typo in Reply-To: munging section's logic crept into thebwarsaw1-1/+1
last patch. This caused confirmation requests to have a reply-to pointing back to the list. Closes bug #115253.
2000-09-24a few last minute updatesbwarsaw1-1/+1
2000-09-24Mailbox._fromlinepattern: optimizations by Tim Peters.bwarsaw1-1/+4
2000-09-24a few last minute updatesbwarsaw1-12/+14
2000-09-24a few last minute updatesbwarsaw1-3/+5
2000-09-24Mailbox._isrealfromline(): Integrate optimization from proposed Pythonbwarsaw1-0/+6
2.0 patch.
2000-09-24Fold the UnixMailbox optimization into Mailman.Mailbox.Mailbox class,bwarsaw1-6/+3
and use that class here.
2000-09-22Extensive cleanup and performance improvements. Most signficant changes are:jhylton2-86/+101
- add support for decoding subjects in links to next and prev message if the encodings of the two messages are the same - change re.sub('"',...) with string.replace('"', ...) - remove unused __processbody_CGIescape method - vast simplification and speed up of format_article (still more to do in methods it calls) - change logic of loadbody_fromHTML to avoid unnecessary tests - add slightly optimized mailbox class
2000-09-22misc cleanupjhylton1-29/+18
replace open calls with explicit open_ex add load method with code from __init__
2000-09-22Fix index generation bug that oocasionally prevented messages fromjhylton2-160/+202
appearing in index. pipermail generated several indexes by assuming that date was unique. If two messages arrived with, e.g., the same author and date, then the author index treated them as identical. As a result, both messages were archived, but only the last one was included in the index. Solution is to always include the msgid, which is unique, in the index key. Change database keys to combine elements using tuples instead of string concatenation with \000 as separator. Fix was accomplished by refactoring on pipermail.Database and its subclasses. Push index-key generation into common concrete base class Database; rename abstract base class to DatabaseInterface. Break up addArticle method into several pieces. TBD There is still more refactoring to do on Database class. Because date key has changed, HyperDatabase method to return first and last date changed to reflect format of date key. Refactor pipermail.T.add_article into several pieces.
2000-09-22a few last minute additionsbwarsaw1-1/+5
2000-09-22minor proofreadingbwarsaw1-6/+7
2000-09-22Bugs and patches go to SourceForge now.bwarsaw1-4/+13
2000-09-22Dang, another problem with --prefix and --with-var-prefix interaction.bwarsaw2-40/+42
2000-09-22newly generated from 2.0b6's TODO listbwarsaw1-131/+138
2000-09-22Removed debugging print.bwarsaw1-1/+0
2000-09-22New TODO => todo.html generator. Requires Python 2.0bwarsaw1-52/+47
2000-09-22apply patch #100867-- add robot meta tags to cause more intelligentjhylton1-0/+3
search engine indexing of index and message pages
2000-09-22replace null bytes in message body with spacesjhylton1-2/+4
2000-09-22More acks.bwarsaw2-1/+5
2000-09-22Updates for 2.0beta6bwarsaw1-0/+79
2000-09-22Another fix for --prefix, --with-var-prefixbwarsaw2-50/+60
2000-09-22Article._get_body(): Python 1.5.2's int() takes only one argument.bwarsaw1-1/+1
2000-09-22decode quoted-printable message bodiesjhylton1-4/+38
keep _charsets dictionary in pickled rep of archive; this allows the charset for an index page to be set based on the total count of charsets in all messages
2000-09-22Small typo in the default case of no --with-var-prefix provided.bwarsaw2-4/+4
2000-09-22default should not be verbosejhylton1-1/+1
2000-09-22Bump to 2.0beta6bwarsaw2-4/+4
2000-09-22Support for patch #101331. Specifically,bwarsaw2-127/+163
Support the --with-var-prefix Also change --with-ownername to --with-username and --with-ownergroup to --with-groupname and set these up to propagate into substitutions.
2000-09-22Several changes in support of David Champion's SF patch #101331.bwarsaw1-4/+8
Specifically, Describe the new --with-var-prefix option. Also, change --with-ownername to --with-username and --with-ownergroup to --with-groupname
2000-09-22Several changes in support of David Champion's SF patch #101331.bwarsaw1-8/+13
Specifically, VAR_PREFIX gets substituted here by configure. This is where all the writable, variable directories in Mailman are installed, such as: LIST_DATA_DIR = $VAR_PREFIX/lists LOG_DIR = $VAR_PREFIX/logs LOCK_DIR = $VAR_PREFIX/locks DATA_DIR = $VAR_PREFIX/data QUEUE_DIR = $VAR_PREFIX/qfiles SPAM_DIR = $VAR_PREFIX/spam PUBLIC_ARCHIVE_FILE_DIR = $VAR_PREFIX/archives/public PRIVATE_ARCHIVE_FILE_DIR = $VAR_PREFIX/archives/private Also, MAILMAN_UID and MAILMAN_GID get substituted here by configure too.
2000-09-22Several changes in support of David Champion's SF patch #101331.bwarsaw1-2/+1
Specifically, HyperArchive.html_TOC_entry(): Don't calculate path to archives/private here; it's already done for us in mm_cfg.
2000-09-22Several changes in support of David Champion's SF patch #101331.bwarsaw1-4/+17
Specifically, The following directories (VAR_DIRS) are installed relative to VAR_PREFIX: logs, archives, lists, locks, qfiles, data, spam, filters, archives/private, archives.public doinstall: Create directories in VAR_PREFIX.
2000-09-22Several changes in support of David Champion's SF patch #101331.bwarsaw1-1/+2
Specifically, FILTERSDIR is relative to VAR_PREFIX (site administrators can add their own filter programs).
2000-09-22Several changes in support of David Champion's SF patch #101331.bwarsaw1-2/+3
Specifically, Install pending_subscriptions.db into $DATADIR, which is calculated relative to VAR_PREFIX.
2000-09-22Several changes in support of David Champion's SF patch #101331.bwarsaw1-2/+2
Specifically, calcversions(): Update the comment since the logs dir is now relative to VAR_PREFIX.
2000-09-22Several changes in support of David Champion's SF patch #101331.bwarsaw1-1/+3
Specifically, main(): the REMOVABLES are relative to VAR_PREFIX now.
2000-09-22Several changes in support of David Champion's SF patch #101331.bwarsaw1-15/+27
Specifically, MAILMAN_UID and MAILMAN_GID are now available in mm_cfg, so use these as the gid to check group-ownership against, and as the user to re-run the script as if there are errors. checkall(): Now knows about all of PREFIX, EXEC_PREFIX, and VAR_PREFIX and checks the permissions of them all. It's smart about knowing when any of these directories are the same.
2000-09-22get_message(): The filter programs now live in VAR_PREFIX/filters.bwarsaw1-1/+1
Closes David Champion's patch #101331.
2000-09-22What else? More good ideas. ;)bwarsaw1-0/+5
2000-09-22First pass at updates for 2.0. Also fix spelling mistakes.bwarsaw1-46/+68
2000-09-22do_child(): Use a slightly different algorithm for munging thebwarsaw1-5/+26
Message-ID: header in posted messages. We define a machine parsable format containing the listname and the hostname, and if these match our list's name and hostname, we do not munge the header. This continues to allow crossposting to multiple gated mailing lists, but should break loops involving the nntpd in the most common case. Thanks to Jim Tittsler for pointing out the problem.
2000-09-22HyperArchive.__init__(): charset attribute needs to be initialized tobwarsaw1-2/+3
None otherwise pure-ascii archives fail to build. Other de-Python-2.0-ifications.
2000-09-22Coding style changes. De-Python-2.0-ification.bwarsaw1-34/+58
Unit test returns same results in Python 1.5.2, 1.6, and 2.0.
2000-09-22Numerous changes to support message bodies and headers that use ajhylton2-196/+319
non-ascii charset. HyperArch: call write_index_entry from write_threadindex_entry more style issues; refactoring of several methods add ctype, charset, and decode attrs to Article; set based on Content-Type header and an encoded-words in header add extra blank lines to html templates so that they interact better with iso-2022-jp text handle msg <title> and <h1> tags separately to avoid non-ascii characters in title add encoding format to index and message headers add explicit template for index entry pipermail: handle messages with timezone gracefully catch EOFError when loading archive pickle fix a few bugs that were hidden by bogus overrides in HyperArch