Jppy: status of jpilot-python
Nicholas Piper
nick-jppy at nickpiper.co.uk
Sat Feb 17 11:29:36 GMT 2007
Martin,
On Wed, 14 Feb 2007, martin f krafft wrote:
> also sprach Nicholas Piper <nick at nickpiper.co.uk> [2007.02.06.1837 +0000]:
> > [core]
> > email = xterm -e mutt %e
> > Maybe I should make %s work too?
> Just thinking about this, it would be great if other fields were
> made available as well, such as:
> %t Category
> %l Last name
> %f First name
> %c Company
> %y City
> %Y Country
> %1-9 Custom 1-9
> I have a script that calls mutt with my appropriate identity, and it
> would be nice to make this information available to it.
I've done this now, so you can do this in your .jppyrc:
[core]
emailer = xterm -e mutt -s "Hello %(firstname)s %(lastname)s" %(email)s
You can use any of the keys off the Contacts record:
In [3]:print jppy.addressBook().records()[0].keys()
['lastname', 'firstname', 'company', 'title', 'picture', 'phone1',
'phone2', 'phone3', 'phone4', 'phone5', 'phone6', 'phone7',
'address1', 'city1', 'state1', 'zip1', 'country1', 'address2',
'city2', 'state2', 'zip2', 'country2', 'address3', 'city3', 'state3',
'zip3', 'country3', 'custom1', 'custom2', 'custom3', 'custom4',
'custom5', 'custom6', 'custom7', 'custom8', 'custom9', 'website',
'birthday', 'reminder', 'im1', 'im2', 'note', 'currentphone',
'showphone', 'type1', 'type2', 'type3', 'type4', 'type5', 'type6',
'type7', 'typeim1', 'typeim2', 'typeaddr1', 'typeaddr2', 'typeaddr3',
'phones', 'phones_with_labels', 'email', 'mobile']
(Note the change of the name of the setting from 'email' to 'emailer')
This is in trunk r188.
Nick
--
Nick Piper, Developer, LogicaCMG http://www.nickpiper.co.uk/
GPG Encrypted mail welcome! 1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty & suffering !
More information about the Jppy
mailing list