summaryrefslogtreecommitdiff
path: root/Mailman
Commit message (Collapse)AuthorAgeFilesLines
...
* write(): No longer necessary; Python 2.0's extended print syntax isbwarsaw2000-12-071-20/+0
| | | | better.
* Bumping to 2.0 final.bwarsaw2000-11-211-3/+3
|
* Bumping to rc3bwarsaw2000-11-161-2/+2
|
* ScriptURL(): Hopefully fixes the last place that not havingbwarsaw2000-11-161-1/+5
| | | | | | | DEFAULT_URL end in a slash causes problems. The default value for web_page_url argument is now None, and if it's found to be None in the body of the function, it's set to mm_cfg.DEFAULT_URL (and coerced to always end in a slash).
* process(): "Fix" the Reply-To: header munging algorithm. If mungingbwarsaw2000-11-161-5/+10
| | | | | | | is enabled, we now unconditionally munge based on the reply_goes_to_list config variable setting. If the Reply-To: header is munged, the original Reply-To: header (if any) is put on X-Reply-To:
* GetConfigInfo(): Update the details for both the reply_goes_to_listbwarsaw2000-11-161-17/+29
| | | | and reply_to_address configuration options.
* Better description of DEFAULT_REPLY_GOES_TO_LISTbwarsaw2000-11-161-1/+9
|
* CheckVersion(): Do not call versions.Update, and do not set thebwarsaw2000-11-141-3/+4
| | | | data_version attribute, unless the list is locked.
* __init__(): Fix for case where Content-Transfer-Encoding header isbwarsaw2000-11-131-2/+2
| | | | missing. Submitted by Erik Forsberg (original patch author).
* __init__(): The values of Content-Type and Content-Transfer-Encodingbwarsaw2000-11-101-3/+6
| | | | are case insensitive according to RFC 1521. Closes patch #102268.
* Bumping to rc2bwarsaw2000-11-101-2/+2
|
* Added a Useful Comment.bwarsaw2000-11-101-1/+2
|
* get_archives(): Removed the line which specifically eliminatesbwarsaw2000-11-101-1/+0
| | | | | | | | messages with a Subject: in ('subscribe', 'unsubscribe'). This kind of filtering happens at higher levels in Mailman; if such a message is in the .mbox file, it should be in the html archive. Closes bug #121811 for real now.
* _rx_quote: Change the regexp so that it only matches legitimatebwarsaw2000-11-091-1/+1
| | | | | (uppercase) hex digits. This fixes SF bug #117548 and replaces the suggested patch in patch #102097. (patch approved by Jeremy.)
* process_form(): Don't pass the `user' argument to PrintResults whenbwarsaw2000-11-091-2/+1
| | | | | | the user is successfully unsubscribed. In that case there /is/ no options for the user to continue to edit. Fixes SF bugs 122017 and 121591.
* DEFAULT_AUTOMATIC_BOUNCE_ACTION: John A. Martin noticed that thebwarsaw2000-11-091-3/+3
| | | | | comment doesn't jive with the web options. It also doesn't jive with the actual implementation, so make the comment conform to reality.
* PUBLIC_ARCHIVE_FILE_DIR, PRIVATE_ARCHIVE_FILE_DIR: slightly morebwarsaw2000-11-091-2/+2
| | | | portable definitions.
* __handlepost(): When reconstituting the message from the requestbwarsaw2000-11-081-0/+6
| | | | | | | | | database, zap the `filebase' attribute and let it be recalculated when the message is enqueued. This fixes duplication bugs when an approved message has delivery problems, and get re-enqueued continually with a different filebase. This should close SF bug #117015.
* connect(): Wrap the sock.connect() in a try/except so that if thebwarsaw2000-10-311-1/+5
| | | | | connection fails with a socket.error, the file descriptors are reclaimed.
* GetConfigInfo(): In the reply_goes_to_list details, add a link tobwarsaw2000-10-271-1/+3
| | | | Simon Hill's dissenting opinion on Reply-To munging.
* HyperArchive.html_TOC(): Dan Mick recognized an indentation bug whichbwarsaw2000-10-271-1/+1
| | | | broke the archiver.
* process(): Patch by Fil to force listinfo urls to be absolute.bwarsaw2000-10-271-1/+1
|
* Bump versions to 2.0 release candidate 1.bwarsaw2000-10-231-3/+3
|
* Comment out a couple of print statements which can cause annoying cronbwarsaw2000-10-201-2/+2
| | | | emails. These should really be log file output.
* SF Patch #101846 by Sean Reifschneider (modified by bwarsaw) to addbwarsaw2000-10-201-0/+5
| | | | MTA_ALIASES_STYLE for the newlist script's output.
* lock(): Added a comment that the __touch() right after the initialbwarsaw2000-10-121-0/+4
| | | | | | __write() can fail with an EPERM. It seems to be a very rare occurrence, only happens from cron, and (only?) on Solaris 2.6. I'm too nervous to change this for 2.0.
* __handlepost(): If the message has been approved, and is beingbwarsaw2000-10-101-2/+10
| | | | | | | | | forwarded, we need to craft two completely separate messages for each path through the system. They can't share msgdata state or message text or the first will simply disappear. Hacky way of doing this is to rewind the file pointer and re-instantiate a new message object. Closes SF bug #116311.
* process(): Wrap, in the RFC 822 style, the List-*: headers if they'rebwarsaw2000-10-061-0/+6
| | | | longer than 78 characters.
* process(): Don't try to restore the date if it is None, otherwise webwarsaw2000-10-061-1/+2
| | | | get an annoying exception.
* HasExplicitDest(): It is possible that the address part of the tuplebwarsaw2000-10-061-0/+5
| | | | | | returned by getaddrlist() will return None. This happens if the header value is simply not RFC822 compliant. In that case, ignore this element.
* quotemime(): Gross hack to ensure that the results returned are abwarsaw2000-10-061-1/+2
| | | | string. If the input object is false, return the empty string.
* process(): Honor "X-No-Archive: yes", which means don't add thebwarsaw2000-10-051-2/+4
| | | | | | message to the archive. Retain "X-Archive: no" for backwards compatibility with my own hallucinations :). Resolves SF bug #115644.
* HandleBouncingAddress(): Be more robust about getting the messagebwarsaw2000-10-051-3/+13
| | | | | | | body. If the msg object is one of our Message.Message's it'll have a body attribute. If it's a mimetool.Message, it'll have a rewindable fp attribute. But just to be sure, default the body to something reasonable.
* Article.__init__(): Because I don't know why Pipermail uses modifiedbwarsaw2000-10-031-2/+11
| | | | | | | | | versions of the In-Reply-To, References, and Message-ID headers, I retain the original values in different variables. These are used to generate the periodic downloadable archives. _set_date(): Initialize date to '' not 'None' if there is no date header.
* article_text_template: Get rid of this, we're going to do thingsbwarsaw2000-10-031-15/+18
| | | | | | | | | | | | | differently. class Article(): Get rid of text_tmpl for the same reason. as_text(): We need to retain In-Reply-To:, References:, and Message-ID: if the downloadable periodics are to be at all threadable. Suggested by Gerald Oskoboiny. Also, get something reasonable defaults for Date: header if the original message is missing it (i.e. "None" isn't reasonable :).
* Added a hack to access the raw full archive when archives arebwarsaw2000-10-021-12/+24
| | | | | | | | | private. Specifically, main(): Check PATH_INFO and see if the paths is listname.mbox/listname.mbox, in which case the full archive is being retrieved. If so, make sure the Content-Type: is text/plain and feed the whole mbox out to the browser.
* Fixes to the Pipermail TOC page, and to the monthly (or whateverbwarsaw2000-10-021-18/+30
| | | | | | | | | | | | | | | | | | | | | | period) .txt files that ar generated. Specifically, sizeof(): factor out code to calculate size of file with appropriate bytes/KB/MB suffix. article_text_template: For proper parsing by most Unix mail compatible tools, the From: header should be in the form From: emailaddr (real name) Article.as_text(): Make sure the plain text headers have valid (even if bogus) From_ separator for compatibility with Unix mail and similar tools. Craft a fromdate and email address if they aren't present in the original message. TOC_template, html_TOC(): Added a link to the full raw archive file, which was always available, but hidden. You still need to go through private.py if the archives are private, of course. Also, report on the approximate size of the raw archive.
* Since we now require Python 1.5.2 and that version has getpass in it'sbwarsaw2000-10-021-107/+0
| | | | | standard library, get rid of Mailman.pythonlib.getpass compatibility module.
* cosmeticbwarsaw2000-10-021-7/+8
|
* Moved SITE_PW_FILE here from SecurityManager.pybwarsaw2000-10-021-0/+2
|
* SetSiteAdminPassword(), CheckSiteAdminPassword(): These are betterbwarsaw2000-10-022-20/+18
| | | | | suited in Utils than in the SecurityManager class because they don't require the MailList object at all.
* two changes to charset handling issues: check for charset injhylton2000-10-022-15/+45
| | | | | | | | | | | | | mm_cfg.VERBATIM_ENCODING list and do not call html_quote if it is found. The list should contain charsets that use multibyte encodings where 0x26 may not represented the & character. Add option for default charset (None == us-ascii). Fix bug in format_article that added <pre> tags to the message body *before* writing the text version. The fix isn't very clean, but it is functional and quick. Generate the HTML body and store it as html_body attribute. Use this in preference to body attribute when writing html output.
* Fixes for a minor local security hole. Some of the CGI scripts couldbwarsaw2000-09-299-127/+62
| | | | | | | | | | | bomb with tracebacks if PATH_INFO environment variable wasn't defined. Fixed this by making them all use Utils.GetPathPieces() and "doing something sensible" when that returned a false value. Also, edithtml is now hidden behind a login screen, so there's no need to enter the list password to edit the html. You can't even get to the list of files to edit unless you've admin authenticated. Closes SF bug #114091, Jitterbug PR# 24.
* GetPathPieces(): Make this more efficient by using filter(), andbwarsaw2000-09-281-9/+7
| | | | | | | | change the semantics for the most common situation: splitting the $PATH_INFO environment variable into components for the cgi scripts. ScriptURL(): This was the only non-CGI use of GetPathPieces() so now this just uses the filter() call instead of the new semantics.
* AppendMessage(): Since we can't portably test the numeric/symbolicbwarsaw2000-09-271-2/+3
| | | | | error code raised by seek()ing before the end of a non-existant or zero length file, we simply ignore all IOErrors that can result.
* process(): Darrell Fuhriman notes that the List-Archive: header'sbwarsaw2000-09-251-2/+3
| | | | value needs to be wrapped in angle brackets.
* process(): Typo in Reply-To: munging section's logic crept into thebwarsaw2000-09-251-1/+1
| | | | | last patch. This caused confirmation requests to have a reply-to pointing back to the list. Closes bug #115253.
* Mailbox._fromlinepattern: optimizations by Tim Peters.bwarsaw2000-09-241-1/+4
|
* Mailbox._isrealfromline(): Integrate optimization from proposed Pythonbwarsaw2000-09-241-0/+6
| | | | 2.0 patch.
* Fold the UnixMailbox optimization into Mailman.Mailbox.Mailbox class,bwarsaw2000-09-241-6/+3
| | | | and use that class here.