Simple script to grab attachments from pop3 server

  • Thread starter Thread starter Wowbagger
  • Start date Start date
W

Wowbagger

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.
 
It has the tools to allow you YOU to write the code to do what you are
asking.
 
Wowbagger said:
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
 
Back
Top