There're a lot of combinations to manage your email with emacs, but this works for me. I've a backup and I can manage my daily email.
The stack:
- emacs
- offlineimap
- mu
- mu4e
| require 'rubygems' | |
| require 'mechanize' | |
| FIRST_NAME = 'FIRST_NAME' | |
| LAST_NAME = 'LAST_NAME' | |
| PHONE = 'PHONE' | |
| EMAIL = '[email protected]' | |
| PARTY_SIZE = 2 | |
| SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' } |
| fetch('https://maps.googleapis.com/maps/api/geocode/json?address=10030®ion=US', { | |
| method: 'get' | |
| }).then((response) => response.json()) | |
| .then((response) => { | |
| let address = response.results[0].address_components.reduce((comps, comp) => { | |
| let attr = comp.types[0]; | |
| attr = (attr === 'administrative_area_level_2') ? 'county' : attr; | |
| attr = (attr === 'administrative_area_level_1') ? 'state' : attr; | |
| comps[attr + '_long'] = comp.long_name; | |
| comps[attr + '_short'] = comp.short_name; |