mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 09:51:36 +03:00
16 lines
445 B
Plaintext
16 lines
445 B
Plaintext
:: Send e-mail via gmail API
|
|
::
|
|
:::: /hoon/send/gmail/gen
|
|
::
|
|
/? 310
|
|
/- rfc
|
|
:- %say
|
|
|= {^ {to/tape subject/tape opt/$@(~ {mess/tape ~})} _from="urbit-test@gmail.com"}
|
|
:- %gmail-req
|
|
:^ %post /messages/'send' ~['uploadType'^'simple']
|
|
^- message:rfc
|
|
=+ parse-adr=;~((glue vat) (cook crip (star ;~(less vat next))) (cook crip (star next)))
|
|
:+ (scan from parse-adr)
|
|
(scan to parse-adr)
|
|
[(crip subject) ?~(opt '' (crip mess.opt))]
|