jaklis/README.md

54 lines
1.7 KiB
Markdown
Raw Normal View History

2020-11-10 11:42:02 +01:00
# Utilisation de la messagerie Cesium+/Gchange
## Réception/Envoi/Suppression de messages
2020-05-20 17:59:47 +02:00
2020-11-10 11:42:02 +01:00
## Utilisation
2020-05-20 17:59:47 +02:00
2020-05-20 18:00:41 +02:00
```
2020-11-10 11:38:08 +01:00
chmod u+x readmsg.sh sendmsg.sh deletemsg.sh
2020-05-20 18:00:41 +02:00
```
Par défaut utilise l'émetteur, le fichier de trousseau ainsi que le noeud Cesium+ indiqué dans le fichier `.env`.
2020-11-10 11:38:08 +01:00
Si non renseigné ni dans le fichier `.env` ni en argument de la commande, alors ils seront demandés interactivement.
2020-11-10 11:42:02 +01:00
### Lecture des messages
2020-11-10 11:38:08 +01:00
```
./readmsg.sh
```
2020-11-10 11:39:57 +01:00
_Options_:
2020-11-10 11:38:08 +01:00
```
-r,--recipient <pubkey> Uses <pubkey> as recipient of the messages.
-k,--key <key> Path <key> to the pubsec keychain file of the issuer.
-n,--number <number> Display the <number> lasts messages from Cesium (tail-like format)
-o,--outbox Read outbox messages instead of inbox
-h,--help Display this help
```
2020-11-10 11:42:02 +01:00
### Envoi de messages
```
./sendmsg.sh
2020-11-10 11:38:08 +01:00
```
2020-11-10 11:39:57 +01:00
_Options_:
2020-11-10 11:38:08 +01:00
```
-t Test mode: Uses the "test.txt" file as well as the same recipient as the sender.
-f,--file <file> Read the file <file> with title in first line and content in rest of the file for the message.
-r,--recipient <pubkey> Uses <pubkey> as recipient of the message.
-i,--issuer <pubkey> Uses <pubkey> as issuer of the message (Could be remove in future version by calculating pubkey from privatekey).
-k,--key <key> Path <key> to the pubsec keychain file of the issuer.
-h,--help Display this help
```
2020-11-10 11:42:02 +01:00
### Suppression de messages
2020-11-10 11:38:08 +01:00
```
2020-11-10 11:39:57 +01:00
./deletemsg.sh
2020-11-10 11:38:08 +01:00
```
2020-11-10 11:39:57 +01:00
_Options_:
2020-11-10 11:38:08 +01:00
```
-id,--id <ID du message> Delete the message with ID <id>.
-i,--issuer <pubkey> Uses <pubkey> as issuer of the message.
-k,--key <key> Path <key> to the pubsec keychain file of the issuer.
-o,--outbox Delete outbox messages instead of inbox
-h,--help Display this help
```