LinuxQuestions.org
Visit Jeremy's Blog.
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 06-04-2008, 02:11 PM   #1
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Rep: Reputation: 30
procmailrc rule for subject does NOT contain


I have a user on my mail server that forwards her email to another account. I want to forward her mail for her, except the ones that are marked as spam by our spam filter.

I would like ALL mail delivered to her $DEFAULT, but mail that DOES NOT contain 'Spam' to be sent to another address as well.

I was able to find how to process mail if the subject CONTAINS a string, but is it possible to process if the subject does not contain.

Thanks
 
Old 06-05-2008, 12:12 PM   #2
Uxinn
Member
 
Registered: May 2008
Location: Iceland
Distribution: Ubuntu Hardy
Posts: 47

Rep: Reputation: 16
#This matches a missing subject field in the header
* 1^0 !^Subject:

#This matches a empty Subject field
* 1^0 ^Subject[ ]$|$)

Bracket should contain a space and Tab


There are many good procmail howto's out there
 
Old 06-05-2008, 01:00 PM   #3
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Original Poster
Rep: Reputation: 30
Can you put multiple addresses on the deliver line?

like
Quote:
$DEFAULT, ! otheraddress@domain.com
or something?

Last edited by soylentgreen; 06-05-2008 at 01:07 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
Need Procmailrc Rule TastyWheat Linux - Software 3 09-27-2007 09:00 PM
Procmailrc filtering Intimidator Linux - Server 1 06-11-2007 07:30 AM
.procmailrc jayakrishnan Linux - Networking 0 11-19-2005 02:13 AM
procmailrc davidsrsb Slackware 3 06-15-2005 11:07 AM
what's the max length of rule in .procmailrc? xeza Linux - Software 1 11-20-2003 09:28 AM

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

All times are GMT -5. The time now is 12:30 AM.

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