procmail
[Top] [All Lists]

Re: Problem with Body search 3.21

2002-07-18 02:28:45
On Thu, 18 Jul 2002, Professional Software Engineering wrote:


At 22:58 2002-07-17 -0700, Keith did say:
At 18:33 2002-07-17 -0700, Keith did say:
I am attempting to match the filename= in the _body_
of the messages, but no matter what I do it never
matches.


procmail: No match on "filename=.*"

How about a text excerpt from the message you're trying to match?  If 
there's a whitespace before the '=' for instance, this can be expected to 
NOT match.

For that matter, does the message even have FILEname ?  The rash of viruses 
(which one might be trying to match against, for all we know), simply use:

         name="whatever"

"Why isn't this working" often boils down to the particular data you're 
working with, and since you're not sharing even a glimmer of that, it is a 
crapshoot for everyone here...


 Ok Sean I will be more clear in the future. Now I can get it to match
any Header like: 
:0 H:
* ^Content-Type: MULTIPART
/home/user/mail/attachment

but this filter will never match. 

:0 B:
*filename=.*
/home/user/mail/attachment

 I can't figure out why procmail is not scanning the body or
not finding the match. 


Here is a sample message that does not match:



Date: Thu, 18 Jul 2002 01:14:29 -0700 (PDT)
From: Keith <n6jpa(_at_)Xattbi(_dot_)com>
To: n6jpa(_at_)Xattbi(_dot_)com
Subject: dd 6
Message-ID: 
<Pine(_dot_)LNX(_dot_)4(_dot_)44(_dot_)0207180113480(_dot_)6417-101000(_at_)X12-225-29-45(_dot_)client(_dot_)attbi(_dot_)com>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="-519295715-220664601-1026980069=:6417"

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime(_at_)docserver(_dot_)cac(_dot_)washington(_dot_)edu for 
more info.

---519295715-220664601-1026980069=:6417
Content-Type: TEXT/PLAIN; charset=US-ASCII

ddd 6

-- 
Best Regards,  Keith
NW Oregon Radio http://n6jpa.home.attbi.com/ 
rec.radio.swap email list http://groups.yahoo.com/group/rec_radio_swap
Linux 2.4.7-10 PINE 4.44


---519295715-220664601-1026980069=:6417
Content-Type: APPLICATION/x-tcl; name="keyname.tcl"
Content-Transfer-Encoding: BASE64
Content-ID: 
<Pine(_dot_)LNX(_dot_)4(_dot_)44(_dot_)0207180114290(_dot_)6417(_at_)X12-225-29-45(_dot_)client(_dot_)attbi(_dot_)com>
Content-Description: 
Content-Disposition: attachment; filename="keyname.tcl"

IyEvdXNyL2Jpbi93aXNoCnRrX21lc3NhZ2VCb3ggLXR5cGUgb2sgLXRpdGxl
ICJJTlNUUlVDVElPTiIgLW1lc3NhZ2UgIkp1c3QgcHJlc3MgYW55IGtleSBh
bmQgeW91IHdpbGwgZ2V0IGEgbWVzc2FnZSB3aGljaCB0ZWxscyB5b3UgdGhl
IFRjbC9UayBuYW1lIG9mIHRoZSBrZXkuIgpiaW5kIGFsbCA8S2V5PiB7dGtf
bWVzc2FnZUJveCAtdHlwZSBvayAtdGl0bGUgIkZJTkQgS0VZTkFNRSIgLW1l
c3NhZ2UgIktleSAlSyBwcmVzc2VkIn0=
---519295715-220664601-1026980069=:6417--


-- 
Best Regards,  Keith
NW Oregon Radio http://n6jpa.home.attbi.com/ 
rec.radio.swap email list http://groups.yahoo.com/group/rec_radio_swap
Linux 2.4.7-10 PINE 4.44


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>