The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with procmail mailing list parente Shell Programming and Scripting 0 01-11-2008 11:04 AM
procmail code help Hexabah UNIX for Dummies Questions & Answers 0 08-30-2006 07:05 PM
Procmail filter luiz_fer10 UNIX for Dummies Questions & Answers 1 06-14-2002 12:33 PM
Procmail Tutorial luiz_fer10 UNIX for Dummies Questions & Answers 1 05-24-2002 08:39 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-10-2007
Registered User
 

Join Date: Jan 2006
Posts: 126
using procmail to filter content

Hi i would like to find out how can i write a procmail rule to filter based on the email content.i was unable to locate any similar threads that does filtering based on the content.would appreciate any pointers. thanks
Code:
:0
* ^From: Machine1 <machine1@aaa.com>
# i will have a string "machine1.log" in the content
Email_from_M1_log


:0
* ^From: Machine1 <machine1@aaa.com>
# i will have a string "machine1.result" in the content
Email_from_M1_result
Reply With Quote
Forum Sponsor
  #2  
Old 06-11-2007
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
An old but relevant tutorial:
http://www.stimpy.net/procmail/tutorial/

An excellent source of Procmail recipes:
http://lipas.uwasa.fi/~ts/info/proctips.html

As for content filtering take a look at:
http://partmaps.org/era/procmail/quickref.html
In particular, the "Scope of matching" section.

HTH

Cheers,
ZB

Last edited by zazzybob; 06-11-2007 at 03:35 AM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0