This hack exports Contacts from a CardDAV server and writes a mutt aliases file.
To use:
echo 'machine contacts.icloud.com login [email protected] password APPLE' >> ~/.netrc
./make-aliases
If you have a NICKNAME in your vCards, this will become the alias. Else, the local part of the email address is used.
- This is a hack.
- You must have curl installed.
- Only tested with iCloud.
- As no XML parser is used, changes in server replies will break this.
- No dupe checking for aliases.