summaryrefslogtreecommitdiff
path: root/Mailman/Archiver (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Style nit.bwarsaw2001-08-171-1/+1
|
* InitVars(): Should create self.archive_dir()+'.mbox' notbwarsaw2001-07-271-1/+1
| | | | ArchiveFileName().
* html_TOC(): Use archive_dir() instead of the archive_directorybwarsaw2001-07-261-1/+1
| | | | attribute.
* InitVars(): Do not set list attributes public_archive_file_dir,bwarsaw2001-07-261-36/+19
| | | | | | | | | | | | | | private_archive_file_dir, or archive_directory. All three can be calculated when needed, and doing it that way instead improves the mobility of lists. archive_dir(): Return the path previously kept in archive_directory, by calculating it on the fly. ArchiveFileName(): Use archive_dir() to calculate the path to the actual .mbox file. CheckHTMLArchiveDir(): use archive_dir() to calculate the link paths.
* GetConfigInfo(): Removed.bwarsaw2001-07-191-17/+0
|
* InitVars(): Fix the out-of-date comment.bwarsaw2001-07-101-1/+1
|
* BSDDBdatabase.__openIndices(): 'pas' -> 'pass'twouters2001-07-101-1/+1
|
* Add missing import of 'syslog'.twouters2001-07-101-0/+1
|
* Use better syslog() calling convention.bwarsaw2001-06-271-4/+4
|
* Use better syslog() calling convention.bwarsaw2001-06-271-4/+3
|
* Module global article_template removed. Instead, this html is movedbwarsaw2001-06-071-56/+4
| | | | | | into templates/en/article.html and as_html() is modified to use the standard maketext() call to retrieve the template and interpolate in a dictionary of values.
* GetBaseArchiveURL(): Make sure private archive url ends in a slash.bwarsaw2001-06-011-1/+1
|
* Fix typo observed by nobody (aka Anonymous) in SF bug #426002: 'data' shouldtwouters2001-05-291-1/+1
| | | | | | | be 'date'. I don't usually like touching pipermail, but in this case, the pain is minimal. Closes SF bug #426002.
* __openIndices(): os.mkdir() doesn't support keyword arguments.bwarsaw2001-05-251-1/+1
|
* T.__init__(), T.new_archive(), BSDDBdatabase.__openIndices(): Usebwarsaw2001-05-181-7/+20
| | | | os.mkdir() instead of Utils.mkdir().
* __openIndices(): Use os.mkdir() instead of Utils.mkdir().bwarsaw2001-05-181-6/+9
|
* Remove an unnecessary import.bwarsaw2001-05-181-3/+1
|
* Archiver.InitVars(): Use os.mkdir() instead of Utils.mkdir().bwarsaw2001-05-181-6/+7
|
* GetBaseArchiveURL(): Instead of relying on the configuration variablebwarsaw2001-05-161-4/+2
| | | | | PRIVATE_ARCHIVE_URL, calculate the url to the `private' cgi script via self.GetScriptURL().
* InitVars(), GetConfigInfo(): clobber_date goes away as a list-specificbwarsaw2001-05-011-8/+0
| | | | configuration variable.
* Import _ from Mailman.i18n.bwarsaw2001-03-261-3/+1
|
* REpat: recognize 'Re[2]:' style reply-subjects. Fixes SF bug #223554.twouters2001-03-031-1/+1
|
* GetConfigInfo(): Reformatting.bwarsaw2001-02-281-5/+10
|
* close(), _open_index_file_as_stdout(), write_article():bwarsaw2001-02-151-8/+17
| | | | Utils.open_ex() is obsolete.
* load(), close(): Utils.open_ex() is obsolete.bwarsaw2001-02-151-3/+7
|
* processListArch(), write_TOC(), write_article(), update_archive(),bwarsaw2001-02-151-10/+30
| | | | update_article(): Utils.open_ex() is obsolete.
* __archive_file(): Utils.open_ex() is obsolete.bwarsaw2001-02-151-14/+11
| | | | | | ArchiveMail(): Interface change. This method no longer gets the message metadata dictionary (it wasn't used anyway). Also, convert to the mimelib interface.
* _(): new function to fake out i18n for now.bwarsaw2000-12-201-0/+3
|
* First integration patch of Juan Carlos's i18n string marking changes.bwarsaw2000-12-072-17/+17
|
* __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.
* 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.)
* HyperArchive.html_TOC(): Dan Mick recognized an indentation bug whichbwarsaw2000-10-271-1/+1
| | | | broke the archiver.
* Comment out a couple of print statements which can cause annoying cronbwarsaw2000-10-201-2/+2
| | | | emails. These should really be log file output.
* 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 :).
* 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.
* two changes to charset handling issues: check for charset injhylton2000-10-021-15/+29
| | | | | | | | | | | | | 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.
* Fold the UnixMailbox optimization into Mailman.Mailbox.Mailbox class,bwarsaw2000-09-241-6/+3
| | | | and use that class here.
* Extensive cleanup and performance improvements. Most signficant changes are:jhylton2000-09-222-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
* misc cleanupjhylton2000-09-221-29/+18
| | | | | replace open calls with explicit open_ex add load method with code from __init__
* Fix index generation bug that oocasionally prevented messages fromjhylton2000-09-222-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.
* apply patch #100867-- add robot meta tags to cause more intelligentjhylton2000-09-221-0/+3
| | | | search engine indexing of index and message pages
* replace null bytes in message body with spacesjhylton2000-09-221-2/+4
|
* Article._get_body(): Python 1.5.2's int() takes only one argument.bwarsaw2000-09-221-1/+1
|
* decode quoted-printable message bodiesjhylton2000-09-221-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
* default should not be verbosejhylton2000-09-221-1/+1
|
* Several changes in support of David Champion's SF patch #101331.bwarsaw2000-09-221-2/+1
| | | | | | | Specifically, HyperArchive.html_TOC_entry(): Don't calculate path to archives/private here; it's already done for us in mm_cfg.
* HyperArchive.__init__(): charset attribute needs to be initialized tobwarsaw2000-09-221-2/+3
| | | | | | None otherwise pure-ascii archives fail to build. Other de-Python-2.0-ifications.