Just an FYI I have the following script that generates an Org
contacts file based on the Apple Address Book. This lets mu4e and
the standard iPhone/Apple contact list stay in (one-way) sync.
#!/usr/bin/env python
import os
# nick:first last:home_email[:work_email][:other_email]
cmd = "contacts -H -s -S -f'%nn:%fn %ln:%he:%we:%oe' | grep @"
contacts = os.popen(cmd).read()
contacts = contacts.split('\n')
print "# -*- coding: utf-8; eval: (auto-revert-mode 1); -*-"
for c in contacts:
if c == '':
continue
cc = c.split(":")
nick = cc[0]
name = cc[1]
email = cc[2:]
if name == ' ': # no name
continue
for e in email:
if e == '':
continue
print "* ", name
print " :PROPERTIES:"
print " :EMAIL: ", e
print " :END:"
if nick != '':
print "* ", nick
print " :PROPERTIES:"
print " :EMAIL: ", e
print " :END:"
--
You received this message because you are subscribed to the Google Groups
"mu-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.