Click to See Complete Forum and Search --> : Script - needs to display some email content of Outlook 2003


mario2010
08-25-2009, 11:36 AM
--------------------------------------------------------------------------------

As title says.I will need this at work as i have to check every time this email to see some data.
In few words .. this script should display some info from the .zip's in the email.

Example: Email with a .zip attached received .
I will have to open the zip , and search for my building number, and then check to see if the numbers are fine or not too see if i will have to make a refill or not.

This script should display me this numbers and make a small alert on system tray when hits a certain number.
All this on the desktop with my email opened ofcourse ..
Any ideas .. does it make any sense ? :)

btw the zip content is a notepad

JavaServlet
08-25-2009, 05:43 PM
Check the java.util.zip which provides classes to extract, read and write zip files.

Here is a quick start that should put you in the right direction:

import java.io.*;
import java.util.zip.*;

class EmailStuff
{
................


public void getZipFiles(String filename)
{
try
{
String youremaildestination = "c:\\zips\\getEmails\\";
byte[] buf = new byte[1024];
ZipInputStream zipinputstream = null;
ZipEntry zipentry;
.....

mario2010
08-26-2009, 12:31 AM
i would probably want to hire somebody to make me this , i also heard that it can be made with any client-side language (VB, C, C++, C#, etc)...