Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Routing incoming mail thru a mail parsing command.

Status
Not open for further replies.

jxfish2

Technical User
Jan 24, 2002
183
US
I did this a very long time ago, but can't remember the exact syntax...

Can anyone tell me how to route mail through the .forward file, into an executable?

i.e.

| /tmp/mail_parser

Second, can anyone tell me how to read the incoming message, inside of the executable?

i.e.

echo $

-OR-

maybe there's a way to funnel incoming messages via a .mailrc file...

Any help would be greatly appreciated...

JCF
 
Do a search for the "procmail" program, there are several websites with tutorials, and you can find the how-to at Meekness: Uncommon patience in planning a revenge that is worth while.
-- Ambrose Bierce
 
Thanks Ambrose,

But, I just figured it out on my own...

.forward file:

| <mail_parser_file>

<mail_parser_file>:

cat $1 | <do_what_you_want>

Actually, I already had the syntax correct...

Silly me, I simply forgot to make the executable, executable...

Couldn't figure out why it wasn't working...

Ha!

Have a great day...

JCF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top