Hello
I'm trying to write a script to use procmail but my poor experience (2-year
linux user and Fortran knowledge) is not enough. Maybe you can help me more
than the man page.
The task I want to do:
When my machine receives a mail to certain account
(e.g.:robot(_at_)whatever(_dot_)(_dot_)(_dot_)(_dot_)), whit a subject like
this: ddmmyyyy, where dd
are two digits representing a day number, mm are two digits representing a
mouth number, and (off course) yyyy, are four digits representing a year
number, I like that the system to get back to the sender a ASCII file call
ddmmyyyy.txt, which is already done.
Could this be done with procmail ?
Do you have any similar example to show me how to do it?
I'm using Red Hat 5.0 (kernel 2.0.32) and procmail version is v3.10
All the ddmmyyyy.txt archives are in the same directory.
Thanks.
Example:
John wants to get data from 5 th July 1997, so he writes
To: robot(_at_)whatever
From: jhon(_at_)xxxx
Subject: 05071997
The machine has the file call 05071997.txt (that has 8 numbers separated by
comas) and replies
To: jhon(_at_)xxxx
From: robot(_at_)whatever
Subject: RE: 05071997
Body text
1457,1236,1235,1254,4857,788965,65412,8954
***********************************************************
Geof. Mauricio A. Gende
mgende(_at_)fcaglp(_dot_)fcaglp(_dot_)unlp(_dot_)edu(_dot_)ar
C.C. 219 1900
La Plata Argentina
More Signal, Less Noise
***********************************************************