Thanks.
I exported my current address book to ldif, studied that format, then ran this script against my mutt aliases, and it actually worked. I attach it here in case anyone would fine it useful.


This is quick and dirty, YMMV.

s/alias /dn: cn\=/
s/</,mail\=/
s/>//
s/ ,/,/
s/$/\nobjectclass: top/
s/$/\nobjectclass: person/
s/$/\nobjectclass: organizationalPerson/
s/$/\nobjectclass: inetOrgPerson/
s/$/\nobjectclass: mozillaAbPersonObsolete/
s/\(^dn: cn\=\)\([^,]*\)\(.*\)/\1\2\3\ncn: \2/
s/\(.*mail\=\)\([^\n]*\)\(.*\)/\1\2\3\nmail: \2/
s/$/\nmodifytimestamp: 0Z\n/

Joel


Kurt Wall wrote:


Quoth Joel Hammer:


Does anyone know of a way to import addresses from a text file like mutt aliases into a more convoluted file like the abook of mozilla?
Or,failing that, is there a simple explanation somewhere of the abook data format?



http://www.mozilla.org/mailnews/arch/index.html


Kurt



_______________________________________________ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc -> http://smtp.linux-sxs.org/mailman/listinfo/linux-users

Reply via email to