Opened 16 years ago

Closed 15 years ago

#359 closed enhancement (fixed)

Add a script to add users and domains in bulk

Reported by: rjl Owned by: rjl
Priority: normal Milestone: 1.1.0
Component: Perl scripts Version: 1.0.1
Severity: normal Keywords: bulk mass add import users domains
Cc:

Description

Maia users at larger sites need the ability to add user email addresses and domains to Maia's database in bulk, rather than one at a time in the web interface.

As one part of the solution, the GUI could be modified slightly on the Admin->Users and Admin->Domains pages to accept multi-line input for email addresses and domains, so that batches of addresses could be cut-and-pasted into the form for bulk insertion. This would help for relatively small batches, but this has practical limitations in terms of script timeouts. Past a certain number of addresses, the script may run out of time, leaving the job incomplete at some unpredictable point in the list.

The solution for truly large batches is to use a standalone Perl script for the purpose, letting it read its input from a text file, possibly in CSV format, or from standard input. This would be immune to the timeout problem, since it would not be run from within a web server context.

Change History (3)

comment:1 Changed 16 years ago by rjl

  • Status changed from new to assigned

comment:2 Changed 16 years ago by rjl

Ticket #299 includes a patch that allows for comma-separated lists of users to be added on the Admin->Users page, which solves part of the problem.

comment:3 Changed 15 years ago by rjl

  • Resolution set to fixed
  • Status changed from assigned to closed

This has been implemented in the form of the maiadbtool.pl script.

Note: See TracTickets for help on using tickets.