Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-04-2008, 02:11 PM   #1
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.

Old 06-05-2008, 12:12 PM   #2
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
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?

or something?

Last edited by soylentgreen; 06-05-2008 at 01:07 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:49 AM.

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