procmail
[Top] [All Lists]

Help on forward command

1996-08-13 13:46:20
Hi,
I have a unix account dilip(_at_)newsstand(_dot_)cb(_dot_)att(_dot_)com
I am using procmail as follows :
If the message body contains "sailing" then forward the message to
dvazirani(_at_)attmail(_dot_)com and keep a copy in folder "test-fold" at
newsstand.cb.att.com.

The code is as follows :
#TEST
:0 B
* sailing
{
:0 c
!dvazirani(_at_)attmail(_dot_)com
:0
test-fold
}

-----------------------
When I receive the message at 
dvazirani(_at_)newsstand(_dot_)cb(_dot_)att(_dot_)com it comes
as :

--- Forwarded mail from junk(_at_)xyz(_dot_)com

Date: Tue, 13 Aug 1996 15:28:37 -0500
From: junk(_at_)xyz(_dot_)com
Subject: Test of Forward   1 Dilip
Reply-To: junk(_at_)xyz(_dot_)com
To: dilip(_at_)newsstand(_dot_)cb(_dot_)att(_dot_)com

From John Doe
E-Mail: junk(_at_)xyz(_dot_)com
Phone Number: 201-334-3344
Subject: Test of Forward   1 Dilip

sailing
---End of forwarded mail from junk(_at_)xyz(_dot_)com
--------------

Question 1 : 

The "reply to" and "To" field of the mail header shows :
Reply-To: junk(_at_)xyz(_dot_)com
To: dilip(_at_)newsstand(_dot_)cb(_dot_)att(_dot_)com

Is there a resend option instead of forward - reason I do not want
the "To" field to show dilip(_at_)newsstand(_dot_)cb(_dot_)att(_dot_)com


Question 2 :
How do I change the above procmail code to
look for "sailing" in the whole message (Subject, Body, From) instead
of just Body or subject or From.

Thank You,
dvazirani(_at_)attmail(_dot_)com

-- 


Dilip Vazirani
dvazirani(_at_)attmail(_dot_)com
(201) 564-3258
----------------------

<Prev in Thread] Current Thread [Next in Thread>
  • Help on forward command, Dilip Vazirani <=