The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 02:04 PM
procmail code help Hexabah UNIX for Dummies Questions & Answers 0 08-30-2006 10:05 PM
Procmail filter luiz_fer10 UNIX for Dummies Questions & Answers 1 06-14-2002 03:33 PM
Procmail Tutorial luiz_fer10 UNIX for Dummies Questions & Answers 1 05-24-2002 11:39 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-10-2007
new2ss new2ss is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 133
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
  #2 (permalink)  
Old 06-11-2007
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
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 06:35 AM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0