Differences between revisions 1 and 7 (spanning 6 versions)
Revision 1 as of 2008-05-27 13:27:33
Size: 863
Editor: terri
Comment:
Revision 7 as of 2013-06-06 18:23:35
Size: 1622
Editor: msapiro
Comment: bad day for typos
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma page-filename DOC/versions/7962669 #pragma page-filename DOC/versions/15958300
Line 3: Line 3:
If your archive is in mbox format copy it to
If your archive is in mbox format you can import it with
Line 6: Line 7:
   archives/private/<list>.mbox/<list>.mbox (where <list> is your list name)
}}}

then run

{{{
    bin/arch <list> archives/private/<list>.mbox/<list>.mbox
    bin/arch <listname> path/to/your/file.mbox
Line 17: Line 12:
Note, that public archive files are just a softlink to If you are importing an archive into a new list which currently has no archives, first copy your .mbox to
Line 19: Line 14:
{{{
  archives/private/&lt;list&gt;.mbox/&lt;list&gt;.mbox
{{{ archives/private/<listname>.mbox/<listname>.mbox}}}

which is where Mailman keeps the cumulative archive mbox for <listname>. Then you can run

{{{ bin/arch --wipe <listname>}}}

to initialize the archive from the default mbox. If you are adding messages to an existing archive, you have two recommended choices. You can run the first command above to add your messages and then append your file.mbox to Mailman's <listname>.mbox, or you can merge the files first and then run the second command with the --wipe option to rebuild the archive. In either case, you should stop Mailman before beginning and start Mailman again after you're finished to prevent Mailman's trying to add messages concurrently with you.

{{{#!wiki warning

Caveat

Your mbox file must not contain any unescaped lines beginning exactly with 'From ' in message bodies as these will be interpreted as message separators. There is a bin/cleanarch script to help find and fix such lines if any. Run it with the --help option for more information.
Line 23: Line 29:
so you don't have to do the same job twice. Converted from the Mailman FAQ Wizard
Line 25: Line 31:
''Last changed on Tue Apr 20 11:21:58 2004 by'' Martin Mokrejs
<<Color2(Converted from the Mailman FAQ Wizard, col=darkgreen)>>
This is one of many [[../Frequently Asked Questions|Frequently Asked Questions]].
This is one of many [[../Frequently Asked Questions|Frequently Asked Questions]].

5.1. How do I import an archive into a new mailing list?

If your archive is in mbox format you can import it with

    bin/arch <listname> path/to/your/file.mbox

If it's not in mbox format then you need to figure out how to convert it from whatever form it's in to mbox.

If you are importing an archive into a new list which currently has no archives, first copy your .mbox to

    archives/private/<listname>.mbox/<listname>.mbox

which is where Mailman keeps the cumulative archive mbox for <listname>. Then you can run

    bin/arch --wipe <listname>

to initialize the archive from the default mbox. If you are adding messages to an existing archive, you have two recommended choices. You can run the first command above to add your messages and then append your file.mbox to Mailman's <listname>.mbox, or you can merge the files first and then run the second command with the --wipe option to rebuild the archive. In either case, you should stop Mailman before beginning and start Mailman again after you're finished to prevent Mailman's trying to add messages concurrently with you.

Caveat

Your mbox file must not contain any unescaped lines beginning exactly with 'From ' in message bodies as these will be interpreted as message separators. There is a bin/cleanarch script to help find and fix such lines if any. Run it with the --help option for more information.

Converted from the Mailman FAQ Wizard

This is one of many Frequently Asked Questions.

MailmanWiki: DOC/How do I import an archive into a new mailing list? (last edited 2015-09-02 15:53:50 by msapiro)