LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack 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,345

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


Reply


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 07:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration