Perl script to Import a SquirrelMail Addressbook into a RoundCube database
Here's a handy Perl script that will read an abook file and import its contents into the RoundCube contacts table.
- Assumes that the name of the .abook file is the user name.
(obama.abook is RoundCube user obama)
- The user must already exist in RoundCube
(this script does not create new users, only user contacts)
- Can process multiple files at a time.
sm2mysql ./*.abook
- --help will tell you more.
Perl script to Convert a SquirrelMail Address book into vCards
This Perl script is similar to the one above, but produces a file of vCards instead of adding rows to a table.
- The output file name is the input name with .vcard appended.
(obama.abook yields obama.abook.vcard)
- Can process multiple files at a time.
- --help will tell you more.