Size: 750
Comment:
|
Size: 1614
Comment: rewrote for more clarity and added Caveat
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
#pragma page-filename DOC/versions/14352589 | #pragma page-filename DOC/versions/15958293 |
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/<list>.mbox/<list>.mbox |
{{{ archives/private/<listname>.mbox/<list>.mbox}}} which is where Mailman keeps the cumulative archive mbox for <list>. 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 whit the --help option for more information. |
Line 23: | Line 29: |
so you don't have to do the same job twice. <<Color2(Converted from the Mailman FAQ Wizard, col=darkgreen)>>This is one of many [[../Frequently Asked Questions|Frequently Asked Questions]]. |
Converted from the Mailman FAQ Wizard 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/<list>.mbox
which is where Mailman keeps the cumulative archive mbox for <list>. 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 whit the --help option for more information.
Converted from the Mailman FAQ Wizard
This is one of many Frequently Asked Questions.