HighTechTalks DotNet Forums  

Simple script to grab attachments from pop3 server

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss Simple script to grab attachments from pop3 server in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Wowbagger
 
Posts: n/a

Default Simple script to grab attachments from pop3 server - 11-05-2007 , 03:31 PM






Does VBexpress have the tools required to log onto a pop3 server, extract
the attachments from every email into a local folder then delete the
messages on the server?

This would run on a Windows 2003 server machine with all of the attachments
to be saved to a shared folder.



Reply With Quote
  #2  
Old   
Stephany Young
 
Posts: n/a

Default Re: Simple script to grab attachments from pop3 server - 11-05-2007 , 03:38 PM






It has the tools to allow you YOU to write the code to do what you are
asking.


"Wowbagger" <Wowbagger~~> wrote

Quote:
Does VBexpress have the tools required to log onto a pop3 server, extract
the attachments from every email into a local folder then delete the
messages on the server?

This would run on a Windows 2003 server machine with all of the
attachments to be saved to a shared folder.




Reply With Quote
  #3  
Old   
Al G
 
Posts: n/a

Default Re: Simple script to grab attachments from pop3 server - 11-05-2007 , 04:01 PM




"Wowbagger" <Wowbagger~~> wrote

Quote:
Does VBexpress have the tools required to log onto a pop3 server, extract
the attachments from every email into a local folder then delete the
messages on the server?

This would run on a Windows 2003 server machine with all of the
attachments to be saved to a shared folder.


Out of the Box, No.
However, with the help of another news group, and using VB2005, I have
just done this.

Some things to note:

You can use the provided DotNet sockets, and TCP-IP Client to make the
connection.
See: http://www.faqs.org/rfcs/rfc1939.html

Having made the connection, You can use a Network stream to capture the
email.

Once you have downloaded the email, you will have to parse out the
boundaries, and imbedded boundaries of the body and attachments. This, it
turns out, is non-trivial.

Having accomplished that, attachments are encoded, and will need to be
converted from "Quoted-Printable", Base64, or 7bit encoding to be useable.
See: http://en.wikipedia.org/wiki/MIME


Al G





Reply With Quote
  #4  
Old   
Cor Ligthert[MVP]
 
Posts: n/a

Default Re: Simple script to grab attachments from pop3 server - 11-05-2007 , 11:56 PM



If it is there, then you could have a look here, mostly the place for
software to retrieve all kind of mail

http://www.indyproject.org/index.en.aspx

Cor


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.