LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-08-2005, 06:41 PM   #1
jebix666
LQ Newbie
 
Registered: Jun 2005
Location: i am an electron traveling in circles
Posts: 1

Rep: Reputation: 0
Procmail recipe


I have a situation where i need to use a procmail recipe to look at the "to" field of an email and if it does NOT have a certain addresss then the message will be dumped into a certian folder, otherwise it will continue through the rest of the script. Right now all i can do is make it do is look for the address, but i dont know how to create an action which will take anything that doesent match and move it to a seperate folder. Thanks for any help you guys can give me.

Jebis
 
Old 06-09-2005, 01:43 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Code:
:O
* !^TO:user@domain.com
foldername
please check "man procmailex" for numerous examples going further on this.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Three actions in a recipe of Procmail Borelian Linux - Software 1 11-11-2012 06:48 AM
what is wrong with this regular expression in procmail recipe? realos Linux - Software 4 10-20-2005 09:35 AM
Procmail - help w/ recipe to sort mailer-daemons Ratclaws Linux - Software 1 07-12-2005 04:17 PM
procmail recipe for charset conversion Peff Linux - Software 0 07-13-2004 02:40 AM
procmail recipe not working? theLIGHT Linux - Software 3 11-18-2002 10:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:01 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