Avatar billede nep Nybegynder
25. februar 2000 - 01:44 Der er 5 kommentarer og
1 løsning

Read Attachment from SendMail

I have a letter whith this hed in my mailbox. How can I read the attachment from Perl or...?

from blablabla blaaa...
MIME-version: 1.0
Content-Type: multipart/mixed; boundary="TFS-with-MIME-and-DIME"
X-Mailer: TFS Secure Messaging /310000000/300101596/300400249/300221015/

Message is sent with MIME. Attachments are base64 encoded
--TFS-with-MIME-and-DIME
Content-Type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: quoted-printable

message blablabla blaaa...

--TFS-with-MIME-and-DIME
Content-Type: application/octet-stream; name="filname.skv"
Content-transfer-encoding: base64

IjM0NTQ3IiwiPTJORVcgUVVBRCBBTkFMT0cgRElHSVRBTCBWLjM0IiwiM0NP
TSIsIjAwMDg0OS0wIiwwLjAwMCwwLjAwLDEuMDAsIiAgICAgICAgMTcxOS4w
.
.
.
IFBST0NFU1NPUiBNT0QiLCJYWVBMRVgiLCJOOS0yMTEtMDAwIiwwLjAwMCww
LjAwLDEuMDAsIiAgICAgICAgIDgyMi41MCINCg==


--TFS-with-MIME-and-DIME--
Avatar billede aneez Nybegynder
25. februar 2000 - 19:35 #1
I Think the letter is locked by some kind of koding program. And you have to have the same program to decode it.
Avatar billede aneez Nybegynder
25. februar 2000 - 19:36 #2
If you know witch program, the i can maby help you.
Avatar billede nep Nybegynder
02. marts 2000 - 08:43 #3
I have learnt that it depends on the fact that the attachment is koded by base64 as the header tells. But...
Avatar billede concorp Nybegynder
08. juni 2000 - 22:31 #4
Hmmm I tend to disagree, base64 encode is the standard uuencode format.

What you need to do is copy all the text, between (and including) the 2 "--TFS-with-MIME-and-DIME" tags. You then "paste" the text into a file and run "uudecode filename" and there you go the file has been decoded.


Avatar billede concorp Nybegynder
08. juni 2000 - 22:32 #5
ups forgot to say that you need uudecode (comes with almost all linux distro's)
Avatar billede nep Nybegynder
09. juni 2000 - 10:14 #6
I have fond an algoritm to undecode BASE64 at CPAN that helpt me.
But I think someone shuld have the points...
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester