How to import Mozilla adress book to neomail
Tom Eicher <root <at> teicher.net>
2003-04-05 15:06:45 GMT
How to import Mozilla adress book to neomail
--------------------------------------------
1. export adress book as ldif file
2. manually edit the file to fix all names
containing umlauts (search for "cn::" and
modify the "cn:: gjshdfjhGARBLEDJkjskjsd"
lines to "cn: the display name"
Also, get rid of all commas
:1,$s/,//g
3. extract names and adresses
grep "^mail:" adresses.ldif >a
grep "^cn:" adresses.ldif >n
4. remove headings in vi.
File a: :1,$s/^......//g
File n: :1,$s/^....//g
5. join the files
paste -d"|" n a >x
6. add the empty commas in file x
:1,$s/|/,,,,,,/g
:1,$s/$/,,,,,,,,,,,,,/g
7. all lines should now look like
The name,,,,,,the <at> adress,,,,,,,,,,,,,
8. use neomail web interface to import the file x
voila.
Tom Eicher - root <at> teicher.net - 05-April-2003
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/