Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Automated file processing from email attachment
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ahadley
n00b
n00b


Joined: 08 Jan 2004
Posts: 45
Location: UK

PostPosted: Sat Feb 19, 2005 9:08 pm    Post subject: Automated file processing from email attachment Reply with quote

Hi,
I am running a server running web email and the like and serving currently 4 domains, now what i want to do is to be able to send a [cvs] report to an email address of one of the domains as an attachment, have it automatically opened by my server and the data in it added to several databases. Now, how on earth would I do this?

I just need to be pointed in things like how i get the server to treat emails to this address specially and how i get it all processed by the server - I can probably work out how to parse it and how to add it to the database.

Thanks in advance,
Alex

(i am running postfix for email btw)
_________________
Common sense is the collection of prejudices acquired by age eighteen.
Albert Einstein
Back to top
View user's profile Send private message
GordSki
Guru
Guru


Joined: 18 Oct 2004
Posts: 329

PostPosted: Sat Feb 19, 2005 9:18 pm    Post subject: Reply with quote

Have a look at procmail. It filters mail for a give account and allows you to run scripts, move mail or resend if specified rules are met.

http://userpages.umbc.edu/~ian/procmail.html

G.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum