l.r.s.m.Importer : class documentation

Part of lp.registry.scripts.mlistimport View In Hierarchy

Perform mailing list imports for command line scripts.
Method __init__ Undocumented
Method importAddresses Import all addresses.
Method importFromFile Import all addresses given in the named file.
def __init__(self, team_name, log=None):
Undocumented
def importAddresses(self, addresses):
Import all addresses.

Every address that is preferred or validated and connected to a person is made a member of the team, and is subscribed to the mailing list (with the address given). If the address is not valid, or if it is associated with a team, the address is ignored.

ParametersaddressesThe email addresses to join and subscribe. (type: sequence of strings)
def importFromFile(self, filename):
Import all addresses given in the named file.

The named file has email address to import, one per line. The lines may be formatted using any format recognized by email.utils.parseaddr().

ParametersfilenameThe name of the file containing email address. (type: string)
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.