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