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
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT PHP
yaf_response_abstract
YAF_RESPONSE_ABSTRACT(3) 1 YAF_RESPONSE_ABSTRACT(3)The Yaf_Response_Abstract classINTRODUCTION 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)