Sponsored Content
Top Forums UNIX for Advanced & Expert Users using procmail to filter content Post 302120946 by new2ss on Sunday 10th of June 2007 10:14:13 PM
Old 06-10-2007
using procmail to filter content

Hi i would like to find out how can i write a procmail rule to filter based on the email content.i was unable to locate any similar threads that does filtering based on the content.would appreciate any pointers. thanks
Code:
:0
* ^From: Machine1 <machine1@aaa.com>
# i will have a string "machine1.log" in the content
Email_from_M1_log


:0
* ^From: Machine1 <machine1@aaa.com>
# i will have a string "machine1.result" in the content
Email_from_M1_result

 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Procmail Tutorial

Hello, Somebody knows a good procmail tutorial in the net? Thanks!:) (1 Reply)
Discussion started by: luiz_fer10
1 Replies

2. UNIX for Dummies Questions & Answers

Procmail filter

Hello, I want to make a filter with procmail, using the day of the week ant the hour to filter the message. If the day is Tuesday, the message is redirected to one address. On the other days, the message goes to another address. The messages will be redirected at 8 am to 17 pm. I tried... (1 Reply)
Discussion started by: luiz_fer10
1 Replies

3. UNIX for Dummies Questions & Answers

procmail code help

Hello, I was wondering if my code is correct on a procmail recipe I am trying to use. I am trying to set up custom filter for for my email address. What needs to happen is any email NOT addressed to me in the to: or cc: field is deleted. For the time being it is set it up to go to another... (0 Replies)
Discussion started by: Hexabah
0 Replies

4. Shell Programming and Scripting

Procmail script

Hi, I need to write a procmail script such that: - incoming email is scanned to see if it is spam - if spam deliver to spam folder - otherwise deliver to inbox and send a copy to another address. So far I have: :0 * ^Subject:.*SPULK DUMB I can make a new recipe on to forward mail... (0 Replies)
Discussion started by: mojoman
0 Replies

5. UNIX for Dummies Questions & Answers

Procmail or Spamassassin?

Hello, this is my first visit to your forum and I've searched previous threads for my answer but have not been able to find one. Apologies if there is one that I didn't discover. Is there a way of bouncing or deleting spam that contains non-existent addresses in TO: field but is delivered due... (1 Reply)
Discussion started by: WendyTinley
1 Replies

6. UNIX for Dummies Questions & Answers

a few questions about procmail

Hello, I am running a email server on Centos 5.3 (dovecot, postfix, with emails for a few domains) and I am wondering whether I am using procmail or not. I know procmail is installed because procmail -version returns: Locking strategies: dotlocking, fcntl() Default rcfile: ... (0 Replies)
Discussion started by: JCR
0 Replies

7. UNIX for Dummies Questions & Answers

Procmail

Hi, I have a few questions. I am new to UNIX/Linux. At work I notice that our mail server uses sendmail. When I looked in the sendmail.cf file I see that it is using PROCMAIL as the Local Delivery Agent. Questions:- I looked for /etc/procmail to see its configuration file but I see none.... (0 Replies)
Discussion started by: mojoman
0 Replies

8. Shell Programming and Scripting

Help filter content of a file

Hi all ! I have a file name file1 like this : /A /A/1 /A/2 /B /B/3 /B/4 /tmp/C /tmp/C/5 /tmp/C/6 I want to write a script to take content from file2 and print out to file2 only these lines : /A /B /tmp/C (12 Replies)
Discussion started by: camus
12 Replies
YAF_RESPONSE_ABSTRACT(3)						 1						  YAF_RESPONSE_ABSTRACT(3)

The Yaf_Response_Abstract class

INTRODUCTION
CLASS SYNOPSIS
Yaf_Response_Abstract Yaf_Response_Abstract Constants o const string$Yaf_Response_Abstract::DEFAULT_BODY"content" Properties o protected$_header o protected$_body o protected$_sendheader Methods o public bool Yaf_Response_Abstract::appendBody (string $content, [string $key]) o public bool Yaf_Response_Abstract::clearBody ([string $key]) o public void Yaf_Response_Abstract::clearHeaders (void ) o private void Yaf_Response_Abstract::__clone (void ) o public Yaf_Response_Abstract::__construct (void ) o public void Yaf_Response_Abstract::__destruct (void ) o public mixed Yaf_Response_Abstract::getBody ([string $key]) o public void Yaf_Response_Abstract::getHeader (void ) o public bool Yaf_Response_Abstract::prependBody (string $content, [string $key]) o public void Yaf_Response_Abstract::response (void ) o protected void Yaf_Response_Abstract::setAllHeaders (void ) o public bool Yaf_Response_Abstract::setBody (string $content, [string $key]) o public void Yaf_Response_Abstract::setHeader (void ) o public void Yaf_Response_Abstract::setRedirect (void ) o private void Yaf_Response_Abstract::__toString (void ) PROPERTIES
o $_header - o $_body - o $_sendheader - PHP Documentation Group YAF_RESPONSE_ABSTRACT(3)
All times are GMT -4. The time now is 03:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy