Skip to content

WIP: Add 2to3 command to fully automate migration from Mailman 2.1.

Abhilash Raj requested to merge maxking/mailman:2to3 into master

The intent of 2to3 command is to fully automate the migration of Mailman2 to Mailman3 migration with just one single command. A complete list of Mailman 2 lists is extracted using list_lists -b. Alternatively, mailinglists can be be provided using --list option, multiple times to allow importing specific lists only.

Furthermore, using the mailman-config command, var_prefix configuration option can be extracted. Using the var_prefix we can deduce the paths to all the config.pck that we need to. This option can also be specified using a command line option.

Finally, after the import the mailing list is deleted using the rmlist command if the config import was successful. This can be disabled with --no-delete flag and the delete can perhaps be done when uninstalling Mailman2.

The intention of this process is to have minimum downtime. This migration can be done on a running Mailman 2 and 3 instance. The configuration should make sure that the MTA can fallback to deliver emails to Mailman 3 as soon as the Mailman 2 mailinglist is deleted.

TODO:

  • Print commands to run the hyperkitty_import command which will import all the archives.
  • Allow specifying list of mailing list using a file.
  • Figure out if we can move subscription requests to Mailman 3
  • Figure out if we can move pending emails
Edited by Abhilash Raj

Merge request reports