summaryrefslogtreecommitdiff
path: root/Mailman/Archiver.py
Commit message (Collapse)AuthorAgeFilesLines
* code cleanup: put all the web archive related stuff into it's own subcotton1998-10-221-253/+0
| | | | | | | | | | | | | | | | | | | | | | | | package. Details: changed Makefile to add the sub package as a directory to make recursively in changed configure to make the replacements to Mailman/Archiver/Makefile.in changed Mailman/Makefile.in to add Archiver as a sub package moved Mailman/Archiver.py to Mailman/Archiver/Archiver.py and Mailman/Hyper* to Mailman/Archiver Mailman/pipermail.py to Mailman/Archiver/ created Mailman/Archiver/__init__.py to do a "from Archiver import *" in order to make it's interface identical to previously. import change: changed imports to import Mailman.<module> from import <module> in order to accomodate the package import semantics, also localized <module> by calling <module> = Mailman.<module>. see diffs for details if this sounds confusing, it's not. this change was applied to all of the moved files except pipermail, which didn't need it. did a basic new installation test to make sure all the Makefile/configure changes took place atleast basically correctly. scott
* fixed bug in new Archiver.CheckHTMLArchiveDir. sometimes i think mycotton1998-10-211-6/+6
| | | | | | brains's broken :) Thanks to Harald Meland for the detailed problem report. scott
* code cleanup:cotton1998-10-201-4/+58
| | | | | | | | | | moved the archivery directory checking code to Archiver.Archiver.CheckHTMLArchiveDir() and call that from MailList.Save(). Also changed the archiving perms so that they are setgid mailman, as a start to letting people with accounts that belong to group mailman run archiving stuff by hand. scott
* reinstated old archive to mbox mechanism, but made it configurable tocotton1998-10-201-0/+36
| | | | | | | | use mbox archiving only, to use builtin mailman html archiving only, or to use both. this is done with the ARCHIVE_TO_MBOX config variable in Defaults.py. It is set to do both by default to help those that have an external archiver change to the built in one if they want to. scott
* .ArchiveMail(): Revoked my previous try...finally ensurance - it'sklm1998-10-191-18/+16
| | | | | | | | almost the right thing to do, but it prevents exceptions from processes spawned *within* this one from being reported, so eg the log doesn't get written. (This is painfully apparent while i am struggling with getting the new archival stuff going - it doesn't seem to work at all for me!)
* .ArchiveMail(): Put the os._exit() in a finally section, so it isklm1998-10-191-17/+19
| | | | evaluated even when exceptions interrupt the forked child.
* All these changes are for implemented integrated pipermail based archives.cotton1998-10-091-42/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original patches are from The Dragon de Monsyne with the following changes: -added support for private archives as well as public -added support for archiving daily and weekly -made archiving happen in real time -replaced use of pipermail's BSDBDatabase with homegrown python version -took out the need for DocumentTemplate here's a listing of changed files and relevant changes: Makefile.in - added public_html/archives to installdirs Mailman/Archiver.py - changed ArchiveMail to do real time archiving Mailman/Defaults.py.in - added archive frequency and and archive url extension variables Mailman/MailList.py - changed .Save() to alter perms on public vs. private archives Mailman/htmlformat.py - changes directly from The Dragon do Monsyne's patches. I don't know what they are exactly, but all the cgi's seem to work fine, so I assume they are OK. Mailman/versions.py - changes to add archiving based variables back to the list Mailman/Cgi/private - changed to make it work with default installation and made background white on login page src/Makefile.in - changes to make all wrappers setuid mailman: since various processes may access an archive, and the archiving mechanism uses "chmod", all archives must be owned by mailman, so all wrappers need to be owned by and setuid mailman added files: Mailman/HyperArch.py - from The Dragon de Monsyne with changes made noted above Mailman/HyperDatabase.py - the replacement for pipermail.BSDBDatabase scott
* Convert all module names to their new names.bwarsaw1998-06-191-5/+8
|
* Fixed minor conversion typobwarsaw1998-05-261-1/+1
|
* Removed RCS crudbwarsaw1998-05-261-3/+3
| | | | | Archiver.InitVars(): Small rewrite of self.archive_directory calculation.
* Fixed a typo in the zipcode.viega1998-05-261-2/+2
|
* Added copyright notices to all source files where I am legally entitled to ↵viega1998-05-251-1/+18
| | | | | | | do so. Added a copy of the GNU GPL. Added information about mailman-users in README, and reworded some text in there (made the credits less verbose... perhaps they should move to a credits file?)
* Move the unconfigurable vars to the unconfigurable's section.klm1998-04-121-10/+10
|
* .GetBaseArchiveURL(): Function instead of _base_archive_url member varklm1998-04-101-4/+9
| | | | | - the value is dependent on the value of another setting, self.private_archive, so must be a func.
* Preparing to package a distribution - add a module docstring andmailman1998-04-091-0/+8
| | | | __version__ info.
* Added new-format descriptive header, as string in options list.klm1998-04-071-0/+2
|
* .ArchiveFileName(): use the list values, not the defaults! Needing tomailman1998-04-031-2/+6
| | | | | | | | | set one of our internal lists to a dir totally outside the view of the archiver, i realized this was not working right. Still, there is no way to set the values from the web interface - they have to be set intrusively, by loading the list in the interpreter and setting the new values by hand. This may be something to enable in the site-admin interface...
* Comment noting that the UpdateArchive method is being deprecated inmailman1998-04-031-0/+1
| | | | | favor of an external archiver. (John, i should talk with you to see what you think of this!)
* Changed 'system' category log message to 'error'.mailman1998-03-241-1/+1
|
* Archive base url's have a .html appended, for compat with pipermail'smailman1998-03-181-1/+4
| | | | (new) list.html index.
* We're just archiving to a flat file now, leaving the real work to anmailman1998-03-131-30/+54
| | | | | | | | | | | | | | | | | externally running pipermail. (Andrew and i are working together to get easy hookup, and we should be able to relaese something of pipermail along with the near release of mailman.) Moved the creation of the archive file hear, when it's openned, and protected the open so it doesn't bomb the system if it fails - and a 'system' error is logged to the mailman logs in that situation. The archive (mbox) file is created in either the PUBLIC_ARCHIVE_FILE_DIR or PRIVATE_ARCHIVE_FILE_DIR dependig on the setting of DEFAULT_ARCHIVE_PRIVATE (typically 0, 1 for private archives). Pipermail will be set to look in the private and public archive dirs and do the right thing - with easy means to hook up the mailman password mechanism for the private archives.
* Employ defaults from mm_cfg.mailman1998-02-261-10/+27
| | | | Implement a retained copy of the mail archives.
* Make the archive_volume_frequency description a bit less opaque...mailman1998-02-251-1/+1
|
* Added 'archive_update_frequency' list config option.mailman1998-02-211-1/+8
| | | | Folded a long line.
* Initial revisionmailman1998-02-151-0/+73