MAIL cryptet uuencode

Fermé
cazersose - 17 juin 2008 à 21:00
cazersose Messages postés 76 Date d'inscription vendredi 7 septembre 2007 Statut Membre Dernière intervention 31 août 2009 - 18 juin 2008 à 20:06
Bonjour,
voila j'utliser uuencode pour attacher un fichier au mail mais j'ai le fichier en contennu et tous est crypter alors je voudrais bien de l'aide merci ???
A voir également:

7 réponses

jipicy Messages postés 40842 Date d'inscription jeudi 28 août 2003 Statut Modérateur Dernière intervention 10 août 2020 4 895
17 juin 2008 à 22:52
Salut,

Si tu nous décrivais les manips que tu fais, peut être serions-nous à même de t'aider...

Sinon, peut être employer "uudecode" pour lire ton fichier ;-))
0
MAIL_FROM="toto@yahoo.fr"


MAIL_CC="tata@gmail.com"
MAIL_TO="titi@gmail.com"
MAIL_HOST="smtp.free.fr"
#------------------------+
# Variables de traitement|
#------------------------+
DATE=`date +%F`
#-------------------------------+
# Generation du corps du message|
#-------------------------------+
MAIL_SUBJECT="koukou du $DATE"
MAIL_BODY="Bonjour ..."

echo "" >/tmp/mailVisaTmp.$$ ( je vide le temp)
echo "To: $MAIL_TO" >> /tmp/mailVisaTmp.$$
echo "Cc: $MAIL_CC" >> /tmp/mailVisaTmp.$$
echo "$MAIL_SUBJECT" >> /tmp/mailVisaTmp.$$
echo "$MAIL_BODY" >>/tmp/mailVisaTmp.$$
echo "" >>/tmp/mailVisaTmp.$$
uuencode -m /home/arnaud/BDD/java/genere_excel/fichier.xls fichier1.xls >>/tmp/mailVisaTmp.$$
/usr/sbin/ssmtp -f $MAIL_FROM -t < /tmp/mailVisaTmp.$$ (et ici j'envoye grace au ssmtp )
merci de ton aide
0
jipicy Messages postés 40842 Date d'inscription jeudi 28 août 2003 Statut Modérateur Dernière intervention 10 août 2020 4 895
18 juin 2008 à 19:26
Voilà un exemple avec un fichier "icone_attention.gif" à encoder avec "uuencode" sous le nom "essai.gif", à envoyer via la commande "mail" (sendmail est configuré sur mon poste) et à décoder avec "uudecode" :
[tmpfs]$ ls
icone_attention.gif

[tmpfs]$ file icone_attention.gif
icone_attention.gif: GIF image data, version 89a, 40 x 39

[tmpfs]$ uuencode -m icone_attention.gif essai.gif | mail -v -s "Encodage gif" toto@domaine.fr
toto@domaine.fr... Connecting to mdk.localdomain. via relay...
220 MDK.localdomain ESMTP Sendmail 8.13.4/8.13.4; Wed, 18 Jun 2008 19:12:25 +0200
>>> EHLO MDK.localdomain
250-MDK.localdomain Hello MDK.localdomain [192.168.10.199], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5
250-DELIVERBY
250 HELP
>>> MAIL From:<jp@MDK.localdomain> SIZE=1729 AUTH=jp@MDK.localdomain
250 2.1.0 <jp@MDK.localdomain>... Sender ok
>>> RCPT To:<toto@domaine.fr>
>>> DATA
250 2.1.5 <toto@domaine.fr>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 m5IHCPsd004651 Message accepted for delivery
toto@domaine.fr... Sent (m5IHCPsd004651 Message accepted for delivery)
Closing connection to mdk.localdomain.
>>> QUIT
221 2.0.0 MDK.localdomain closing connection
[tmpfs]$
Là je récupère mon mail sur mon compte, je fais un copier/coller du contenu dans un fichier que je sauvegarde dans mon répertoire "tmpfs" sous le nom "fichier" et que je décode...
[tmpfs]$ ls
fichier  icone_attention.gif

[tmpfs]$ cat fichier
begin-base64 664 essai.gif
R0lGODlhKAAnAPcAAMshEcshEcsiEssiFMsjFcskFsslGMsmGcsnG8soHMsp
HssrIMwsIcwtI8wuJMwvJswwJ8wyKcwzKsw0LMw1Lcw3L8w4MM05Ms06M807
Nc09Ns0+N80/Oc1AOs1CPM1DPc5EPs5FQM5GQc5IQs5JQ85KRc5LRs5MR89N
Sc9OSs9QS89RTM9STc9TT89UUNBVUdBWUtBXU9BZVdBaVtBbV9FcWNFdWdFe
WtFfW9FgXdFhXtFiX9JjYNJkYdJlYtJmY9JnZNNoZdNpZtNqZ9NradNsatNt
a9Rub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dxYvh+XGIw4HK
C0GA+5X0sEJRDX5J4zAG6zeXFhI1KyRY6deWlgsqEXtXicEvMC3zi/bFK88N
jqZHLGbOIS0YsNIR4CjnVUAAOw==
====

[tmpfs]$ uudecode fichier
[tmpfs]$ ls
essai.gif  fichier  icone_attention.gif

[tmpfs]$ file essai.gif
essai.gif: GIF image data, version 89a, 40 x 39
[tmpfs]$
;-))
0
cazersose Messages postés 76 Date d'inscription vendredi 7 septembre 2007 Statut Membre Dernière intervention 31 août 2009 1
18 juin 2008 à 19:38
dac mais la machine destination est un windows et mon fichier que j'envoye est un excel
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
jipicy Messages postés 40842 Date d'inscription jeudi 28 août 2003 Statut Modérateur Dernière intervention 10 août 2020 4 895
18 juin 2008 à 19:58
WinXs v4.2 for Windows (Uuencode and Uudecode. Windows versions of the UNIX commands of the same name. Useful when downloading stuff from the Internet, or when using UNIX mail.)
0
cazersose Messages postés 76 Date d'inscription vendredi 7 septembre 2007 Statut Membre Dernière intervention 31 août 2009 1
18 juin 2008 à 20:01
DONC UUDECODE marche sur windows ok merci de ton aide juste un dernier truc comment je vais copier le contennu du mail voila sous windows merci
0
jipicy Messages postés 40842 Date d'inscription jeudi 28 août 2003 Statut Modérateur Dernière intervention 10 août 2020 4 895
18 juin 2008 à 20:03
Surligner => Copier => Coller ;-))
0
cazersose Messages postés 76 Date d'inscription vendredi 7 septembre 2007 Statut Membre Dernière intervention 31 août 2009 1
18 juin 2008 à 20:06
merci demain je teste a ecole c sur mon lunix a ecole a la maison je suis sous windows merci , esque je peux rependre contacte avec toi ???
0