Skip to content

alicewriteswrongs/supContacts.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Sup Addressbook

Getting the sup addressbook to work correctly proved a bit difficult. I wanted to make my google email contacts available when composing a mail from sup.

So, I wrote a python script which takes the output of:

google contacts list --fields=name,email > sup_contacts.txt

And properly formats it, so that in sup all addresses and names in your google contacts will autocomplete when starting a new mail.

Usage is:

./getContacts.sh
python supContacts.py sup_contacts

where, as above, sup_contacts is the output of the googlecl contact utility (getContacts.sh runs the necessary command). It will save a file contacts.txt which you can copy to your .sup directory.

Note: googlecl is kind of strange, if you are sending the stdout to a file (as above) you need to hit enter once more after executing the command, it is waiting on some input (Please specify title) and will not start printing contacts until you do so.

Happy supping!

About

A script to edit the output of the Googlecl contacts program for use with the sup mua.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published