diff --git a/enigmail/.config b/enigmail/.config index e710aba..72cc7aa 100644 --- a/enigmail/.config +++ b/enigmail/.config @@ -1,13 +1,13 @@ -smtp_server = smtp1.iut-tlse3.fr -smtp_port = 465 +smtp_server = smtp.gmail.com +smtp_port = 587 imap_server = imap.gmail.com imap_port = 993 mail_address = doowap31@gmail.com -login = mrd1609a +login = doowap31@gmail.com algorithm_complexity = 1 -text_editor = gedit +text_editor = nano diff --git a/enigmail/bucket-file b/enigmail/bucket-file index 8b13789..d5b49f7 100644 --- a/enigmail/bucket-file +++ b/enigmail/bucket-file @@ -1 +1,7 @@ +Cher Monsieur, +blablab +bonjour aurevoir + +ldsfk +;;; diff --git a/enigmail/enigmail.sh b/enigmail/enigmail.sh deleted file mode 100644 index 83074fb..0000000 --- a/enigmail/enigmail.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash - -path=$(readlink -f $(dirname $0)); -config_file="$path/.config"; - -editor_line=`cat $config_file | grep -E '^text_editor +=' | cut -d= -f2 | tr -d "[[:space:]]" | tr -d "\n"`; -editor="nano"; - -# si l'editeur est specifie on l enregistre sinon par defaut on met nano -if [ -z $editor_line ] || [ $editor_line = "" ] -then - echo "text_editor = nano" >> $config_file; -else - editor=$editor_line; -fi; - - -if [ $# -ge 1 ] -then # si 1 paramètre au moins - - if [ $# -ge 2 ] - then # si au moins 2 parametres - param=$2; - else - param=""; - fi; - - case $1 in - '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"; - echo "imap_server = imap.gmail.com" >> "$path/.config"; - echo "imap_port = 993" >> "$path/.config"; - echo "" >> "$path/.config"; - echo "mail_address = test@mail.com" >> "$path/.config"; - echo "" >> "$path/.config"; - echo "login = equal_mailadress_or_different_login" >> "$path/.config"; - echo "" >> "$path/.config"; - echo "algorithm_complexity = 1" >> "$path/.config"; - echo "" >> "$path/.config"; - echo "text_editor = nano" >> "$path/.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;; - '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 - '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 - echo "Parametre manquant: enigmail help"; -fi; diff --git a/enigmail/source/enigmail.pyc b/enigmail/source/enigmail.pyc index 7db8416..101fd35 100644 Binary files a/enigmail/source/enigmail.pyc and b/enigmail/source/enigmail.pyc differ diff --git a/enigmail/source/test b/enigmail/source/test deleted file mode 100644 index 4199e31..0000000 --- a/enigmail/source/test +++ /dev/null @@ -1,14 +0,0 @@ -^CTraceback (most recent call last): - File "/home/user/Bureau/GITHUB/Enigmail.py/enigmail/source/send.py", line 21, in - sendMail(conf, Pass, To, Subj, m); - File "/home/user/Bureau/GITHUB/Enigmail.py/enigmail/source/enigmail.py", line 53, in sendMail - srv = smtplib.SMTP( pConf['smtp_server'], pConf['smtp_port'] ); - File "/usr/lib/python2.7/smtplib.py", line 251, in __init__ - (code, msg) = self.connect(host, port) - File "/usr/lib/python2.7/smtplib.py", line 312, in connect - (code, msg) = self.getreply() - File "/usr/lib/python2.7/smtplib.py", line 356, in getreply - line = self.file.readline() - File "/usr/lib/python2.7/socket.py", line 447, in readline - data = self._sock.recv(self._rbufsize) -KeyboardInterrupt diff --git a/enigmail/source/test_ b/enigmail/source/test_ deleted file mode 100644 index ca838df..0000000 --- a/enigmail/source/test_ +++ /dev/null @@ -1,15 +0,0 @@ -^CTraceback (most recent call last): - File "/home/user/Bureau/GITHUB/Enigmail.py/enigmail/source/send.py", line 21, in - sendMail(conf, Pass, To, Subj, m); - File "/home/user/Bureau/GITHUB/Enigmail.py/enigmail/source/enigmail.py", line 53, in sendMail - srv = smtplib.SMTP(pConf['smtp_server'], int(pConf['smtp_port']) ); - File "/usr/lib/python2.7/smtplib.py", line 251, in __init__ - (code, msg) = self.connect(host, port) - File "/usr/lib/python2.7/smtplib.py", line 312, in connect - (code, msg) = self.getreply() - File "/usr/lib/python2.7/smtplib.py", line 356, in getreply - line = self.file.readline() - File "/usr/lib/python2.7/socket.py", line 447, in readline - data = self._sock.recv(self._rbufsize) -KeyboardInterrupt -