change poke-email to use {title/tape body/wall}

And add a "Message from Urbit" title to womb messages
This commit is contained in:
Anton Dyudin 2016-07-01 15:48:10 -07:00
parent ceec2cf84c
commit 2f144b56ab
2 changed files with 5 additions and 5 deletions

View File

@ -79,7 +79,7 @@
==
::
++ poke-email
|= {adr/@ta mez/tape} ^- (quip move +>)
|= {adr/@ta tyl/tape mez/wall} ^- (quip move +>)
%- poke-gmail-req :*
%post
/messages/send
@ -89,8 +89,8 @@
=- (rash adr -)
[;~((glue pat) . .)]:(cook crip (plus ;~(less pat next))) :: /[^@]+@[^@]+/
::
?: (lth (lent mez) 57) [(crip mez) '']
[(crip "{(scag 54 mez)}...") (crip mez)]
(crip tyl)
(role (turn mez crip))
==
::
++ poke-gmail-req

View File

@ -119,7 +119,7 @@
{$knew wire p/ship q/will} :: learn will (old pki)
== ::
++ pear ::
$% {$email mail tape} :: send email
$% {$email mail tape wall} :: send email
{$womb-do-ticket ship} :: request ticket
{$womb-do-claim ship @p} :: issue ship
{$drum-put path @t} :: log transaction
@ -583,8 +583,8 @@
|= {wir/wire adr/mail msg/tape} ^+ +>
?: replay +> :: dont's send email in replay mode
~& do-email+[adr msg]
(emit %poke [%mail wir] [our %gmail] %email adr msg)
::~&([%email-stub adr msg] +>)
(emit %poke [%mail wir] [our %gmail] %email adr "A message from Urbit" [msg]~)
::
++ log-transaction :: logged poke
|= a/transaction ^+ +>