[comp.mail.elm] filter 'AND' problem

wb8foz@mthvax.cs.miami.edu (David Lesher) (04/14/91)

The 'and' clause in my filter rules does not seem to function.

here's my rules:

if (subject contains "receipt") and (from = xyz) then delete
if (subject contains "receipt") then save /usr2/users/dl/tempf/Mail/rcp
if (subject contains "Returned mail: Return receipt") then save /usr2/users/dl/tempf/Mail/rcp
if (subject contains "Delivery Notification") then save /usr2/users/dl/tempf/Mail/rcp
........

and the result:
mthvax:~ % filter -r

Rule 1:  if (subject = "receipt" and from = "xyz") then
	  Delete 

Rule 2:  if (subject = "receipt") then
	  Save /usr2/users/dl/tempf/Mail/rcp

Rule 3:  if (subject = "Returned mail: Return receipt") then
	  Save /usr2/users/dl/tempf/Mail/rcp

Rule 4:  if (subject = "Delivery Notification") then
	  Save /usr2/users/dl/tempf/Mail/rcp

...........
To delete only those receipts from a local user.

Yet what happens is it deletes ALL return receipts....
I RTFMed, but got no hints...
Netuggestions please.....


-- 
A host is a host from coast to coast.....wb8foz@mthvax.cs.miami.edu 
& no one will talk to a host that's close............(305) 255-RTFM
Unless the host (that isn't close)......................pob 570-335
is busy, hung or dead....................................33257-0335