LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-30-2010, 03:20 AM   #1
wasamzy
Member
 
Registered: Apr 2009
Location: Ghana Accra
Posts: 64

Rep: Reputation: 15
how to igore subject


Hi,

I have this:

:0H
* ^To.*support@dot.com.gh
| /usr/bin/mail_filter

which runs a program. But I want to add some thing to it so that, if the subject contain a particular string, the program shouldn't be run. How do I do that?

Thanks
 
Old 11-30-2010, 06:01 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You mean that the mail should be delivered normally if the subject doesn't match a string?
In that case you can use this:
Code:
:0H
* ^To.*support@dot.com.gh
* !^Subject:.*STRING
| /usr/bin/mail_filter
Regards

Last edited by bathory; 11-30-2010 at 04:16 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello (seems to be the subject of choice) mrbones LinuxQuestions.org Member Intro 2 11-26-2007 10:06 PM
Which subject Do I take up? redhatrosh General 5 06-04-2005 04:56 PM
no subject Ammad Linux - Software 0 12-07-2004 01:48 AM
Subject: Whitehat Linux - Newbie 0 05-07-2004 01:27 PM
need to disable fam, or atleast make it igore /mnt/ dirs qwijibow Linux - Software 2 12-18-2003 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration