[Users] Adding multiple email addresses to address book.

Dave Howorth dave at howorth.org.uk
Tue Oct 27 12:40:54 CET 2020


On Tue, 27 Oct 2020 13:02:13 +1300
Rolf Turner <r.turner at auckland.ac.nz> wrote:

> I have a bunch of names and addresses stored in a text file, something
> like:
> 
> clyde c1234 at gmail.com
> irving drwho at um.edu
> fred h2so4 at outlook.com
> melvin M.Mingdinkler at unb.ca
> 
> There are around 50 such, so adding them one at a time would be rather
> tedious.
> 
> The help talks about importing "LDIF" files into an address book, but
> is there a way to import a plain text file?  Or might there be a way
> to convert my plain text file into an LDIF file that I could import?

An LDIF file is just a text file, formatted in a particular way.

For your examples, it would look like

dn: cn=clyde
mail: c1234 at gmail.com

dn: cn=irving
mail: drwho at um.edu

dn: cn=fred
mail: h2so4 at outlook.com

dn: cn=melvin
mail: M.Mingdinkler at unb.ca

You could write a simple script to rewrite your plain text file into
this format.


> Thanks for any ideas.
> 
> cheers,
> 
> Rolf Turner
> 



More information about the Users mailing list