Message-ID: <839179537.54590.1414038497408.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_54589_1508923280.1414038497407" ------=_Part_54589_1508923280.1414038497407 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
You need to edit the raw archive "mbox" directly, and then reg= enerate the archive. This requires login access to the command-line prompt = on the host where Mailman is running; you'll either need to be in the "= ;mailman" group, or be the "mailman" user. (You could of cou= rse do this as root, but that's not recommended =E2=80=93 don't do anything= as root that you don't absolutely need to do as root.)
If you don't know how to use the command-line prompt on the host where M= ailman is installed, or you don't have access to the command-line prompt, y= ou will need to talk to your service provider or your support services pers= onnel in order to perform these functions.
Note that if you are using a cPanel-hosted service (see Mailman and CPanel), you almost certainly w= ill not be allowed to log into the server.
Anyway, assuming you do have the necessary access and knowledge of how t= o use the command-line system on your server, here is a detailed example. L= et's say you want to remove a post from the archive for the "test"= ; list. First, you need to find out where the archive lives:
If that finds nothing try:
If that too finds nothing, then something is wrong. Ask for help on the = mailman-users lists.
Let's assume you found the "test" archive in archive/private:<= /p>
Now you need to edit the raw archive:
(You can use whatever text editor you like, but be sure that it 1) doesn= 't try to wrap lines or change anything implicitly, and 2) can handle large= files, if this is a big list archive.)
Find the message you want to remove, and remove it. Each message starts = with a line that looks like:
where, obviously, the sender address and delivery date will vary. You ne= ed to delete from the "From " line that starts your target messag= e to the next "From " line, ie. the start of the next message. Yo= u MUST have a blank line between the end of the previous message and the st= art of the next message. For example, after deleting message N, you should = have something like this:
NOTE: Instead of editing the .mbox file with an editor, At least one use= r has reported - I've had good luck using a command-line email program (suc= h as mutt) to delete messages from the archive mbox. I've found this is esp= ecially useful for archives that contain many attachments and/or encoded te= xt sections.
Now you need to rebuild the archive visible from the web. First, move th= e existing archive directory (test, not test.mbox) out of the way:
and then go rebuild the archive:
NOTE: you must move the directory out of the way, instead of simply copy= ing it. If you don't do this, the arch command will add additional copies o= f previous messages to the existing archives and you will end up with dupli= cates.
Or you can use the --wipe option with ~mailman/bin/arch to initialize ra= ther than add to the existing archive. See ~mailman/bin/arch --help
To make sure it worked, visit the list archive with your web browser. On= ce you're sure it's fine, you can delete the "test.save" director= y.
CAVEAT: If you delete entire messages from the archive two side effects = occur:
To avoid these problems, instead of deleting the entire message, leave t= he headers intact and replace the body with "Message deleted" or = some other meaningful text.
If you like to reenable archiving later, just turn on archiving in the l= ist-administration panel (and set it to public if you like to).
There is a script at http://www.msapiro.net/scripts/=
(mirrored at http://fog.ccsf.cc.ca.us/~msapi= ro/scripts/prune_arch) which can prune messages older than a specified = number of days from the archives of one or more lists.
If you prefer, you can delete a message from the html archive only.
If the URL of the message is something like http://www.example.com/mailman/private/list/2008-Februa= ry/024419.html (for a private archive) or http://www.example.com/pipermail/list/2008-February/024419.ht= ml (for a public archive), the archived message is the file ~mailman/ar= chives/private/list/2008-February/024419.html.
You can simply remove that file, but that will leave broken links in the= index pages and the 'next' and 'previous' links of neighboring messages. A= better approach is to edit that file to remove what you don't want. Note h= owever that if you don't edit the .mbox file, if you ever rebuild the archi= ve, the original message will return.
Also, the message will remain in the web accessible periodic .txt and .t= xt.gz files unless you edit those too.
Converted from the Mailman FAQ Wizard
This is one of many = Frequently Asked Questions.------=_Part_54589_1508923280.1414038497407--