Jump to content

Stripping Attachment


Gut
 Share

Recommended Posts

I need to save an attachment out of an email to a directory. Any idea how I would do that? I have grabbed the msg and saved it to a txt file, but i can't seem to get the attachment out of the text. I have even tried to decode the attachment string with base64, but no luck.

Link to comment
Share on other sites

Start by deshunting the torpedobay to the umbrella and position it 3,4 meters right from the death star and then sing the tune to knight rider 47 billion times... Errm wait?

Link to comment
Share on other sites

Sorry, let me clarify.

1: I am popping a pop3 server, downloading the message.

2: I want to save the attachment from the message into a directory.

So far I can pop the server and grab the message. I save it as a *.eml file and I can read the text. I see where the attachment is stored, but when I try to decode that info and save it to a file it says the file is corrupt.

The link above appears to be for encoding and sending an attachment.

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...