diff --git a/README.md b/README.md index 4130a5b..487b02e 100644 --- a/README.md +++ b/README.md @@ -41,46 +41,62 @@ Si vous obtenez une erreur, retournez à la première étape vous n'êtes pas da ######Ecrire ```bash enigmail write +enigmail w ``` ######Modifier les paramètres ```bash enigmail config +enigmail c ``` ######Réinitialiser les paramètres ```bash enigmail init +enigmail i ``` ######Lire ```bash enigmail read +enigmail r ``` ######Effacer le contenu ```bash enigmail empty +enigmail em ``` ######Crypter ```bash enigmail encode enigmail encode 168 enigmail encode 0x1f2e85 + +enigmail e +enigmail e 168 +enigmail e 0x1f2e85 ``` ######Décrypter ```bash enigmail decode enigmail decode 168 enigmail decode 0x1285 + +enigmail d +enigmail d 168 +enigmail d 0x1285 ``` ######Envoyer par mail ```bash enigmail send +enigmail ms # MailSend ``` ######Récupérer le contenu du dernier mail ```bash enigmail receive +enigmail mr # MailReceive ``` ######Obtenir de l'aide ```bash enigmail help +enigmail h ``` diff --git a/enigmail/.config b/enigmail/.config index 89be7b0..72cc7aa 100644 --- a/enigmail/.config +++ b/enigmail/.config @@ -4,9 +4,9 @@ smtp_port = 587 imap_server = imap.gmail.com imap_port = 993 -mail_address = test@mail.com +mail_address = doowap31@gmail.com -login = equal_mailadress_or_different_login +login = doowap31@gmail.com algorithm_complexity = 1 diff --git a/enigmail/bucket-file b/enigmail/bucket-file index 28d0af9..8b13789 100644 --- a/enigmail/bucket-file +++ b/enigmail/bucket-file @@ -1 +1 @@ -coucou + diff --git a/enigmail/enigmail.sh b/enigmail/enigmail.sh index 2b34580..83074fb 100644 --- a/enigmail/enigmail.sh +++ b/enigmail/enigmail.sh @@ -26,8 +26,8 @@ then # si 1 paramètre au moins fi; case $1 in - 'help') cat "$path/source/help"|less;; - 'init') # initialise le contenu du fichier de config + 'h'|'help') cat "$path/source/help"|less;; + 'i'|'init') # initialise le contenu du fichier de config echo "smtp_server = smtp.gmail.com" > "$path/.config"; echo "smtp_port = 587" >> "$path/.config"; echo "" >> "$path/.config"; @@ -42,21 +42,21 @@ then # si 1 paramètre au moins echo "" >> "$path/.config"; echo "text_editor = nano" >> "$path/.config"; ;; - 'config') + 'c'|'config') if [ -z $param ] then # si aucun parametre alors on lance l'editeur choisi $editor "$path/.config"; # ouvre en modification le fichier de config else $editor "$path/.config"; fi;; - 'write') $editor "$path/bucket-file";; # ouvre en modification le bucket file - 'empty') echo "">"$path/bucket-file";; # vide le bucket file + 'w'|'write') $editor "$path/bucket-file";; # ouvre en modification le bucket file + 'em'|'empty') echo "">"$path/bucket-file";; # vide le bucket file # ouvre en lecture le bucket file - 'read') echo "\n======================================="; cat "$path/bucket-file"; echo "\n=======================================";; - 'encode') python "$path/source/encode.py" $param;; - 'decode') python "$path/source/decode.py" $param;; - 'receive') python "$path/source/receive.py" $param;; - 'send') python "$path/source/send.py" $param;; + 'r'|'read') echo "\n======================================="; cat "$path/bucket-file"; echo "\n=======================================";; + 'e'|'encode') python "$path/source/encode.py" $param;; + 'd'|'decode') python "$path/source/decode.py" $param;; + 'mr'|'receive') python "$path/source/receive.py" $param;; + 'ms'|'send') python "$path/source/send.py" $param;; *) echo "Erreur"; esac; else diff --git a/enigmail/source/enigmail.pyc b/enigmail/source/enigmail.pyc index b2ddc5d..7488fd6 100644 Binary files a/enigmail/source/enigmail.pyc and b/enigmail/source/enigmail.pyc differ