Sign in to follow this  
Followers 0
Gut

Stripping Attachment

6 posts in this topic

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.

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

Can we get a test run of your script?


0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Anybody? Any help would be greatly appreciated.

Share this post


Link to post
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
Sign in to follow this  
Followers 0