views:

28

answers:

4

We have a database, and we data into database from diferent sources . One source sends data through an email. I have to write a shell script in such a way , that it establishes a connection with that mail (eg: gmail) and acess the inbox of that mail. If possible converts the recent mails in the inbox to text format.

Kindly help me please.. I dont know unix, but still i am given this task...

I am struggling since 2 weeks.. But I could'nt get solution..

Plss help

A: 

Why you don't write a little program in java or another language which gives you this possibility! Then you can call your program in a shell script! Finding a shell script with this functionality will be not so easy, if it is possible!

Govan
do u have any sample script
Shalini
A: 

Use perl or write a small java app using javamail api and invoke it using shellscript

Harsha Hulageri
A: 

Google Command Line Tool could help you.

senia
A: 

Look for command line pop3 readers. A fine example is Getmail which is written is python so you can have a glimpse what it's doing.

$ getmail --getmaildir /path/to/otherdir --rcfile getmailrc-account1
Adam Schmideg