LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 07: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, 02:43 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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


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


All times are GMT -5. The time now is 12:35 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration