mirror of
https://hacklab.nilfm.cc/taro
synced 2024-10-22 14:31:48 +00:00
812 B
812 B
taro
mblaze
frontend in uxn
and crystal
messages
Messages are in the format [1][2:3][...]
:
- byte 1 is the message type
- bytes 2 and 3 are the length of the message, in bytes
- bytes 4 and beyond are the message itself (payload) - won't be present if the length is 0
Even messages go from taro-ctl
to the uxn
windows.
0
: mailbox list2
: list mail in current mailbox (or search results)
Odd messages go from the uxn
windows to taro-ctl
.
1
: change/refresh mailbox; payload is the mailbox to read3
: mark all as read in current mailbox; no payload5
: search mail; payload is the regex7
: refile mail; payload is the beginning and end of the mmsg range in u16, and then the mailbox name9
: trash mail; payload is the beginning and end of the mmsg range in u16