6.0.0-alpha12
6/8/25

[#4616] Vacation filter, From: header Enhancement
Summary Vacation filter, From: header Enhancement
Queue Ingo
Queue Version FRAMEWORK_3
Type Enhancement
State Rejected
Priority 2. Medium
Owners
Requester alessio.molteni (at) gmail (dot) com
Created 11/02/2006 (6793 days ago)
Due 09/30/2006 (6826 days ago)
Updated 07/31/2007 (6522 days ago)
Assigned 11/03/2006 (6792 days ago)
Resolved 07/31/2007 (6522 days ago)
Milestone
Patch No

History
07/31/2007 08:09:21 PM Chuck Hagenbuch Comment #2
Taken from ben
State ⇒ Rejected
Reply to this comment
Duplicate of request 3733.
11/03/2006 12:01:34 AM Jan Schneider Assigned to ben
Due ⇒ 09/30/2006
State ⇒ Assigned
 
11/02/2006 11:44:36 PM alessio (dot) molteni (at) gmail (dot) com Comment #1
Priority ⇒ 2. Medium
Type ⇒ Enhancement
Summary ⇒ Vacation filter, From: header Enhancement
Due ⇒ 10/31/2006
Queue ⇒ Ingo
State ⇒ New
Reply to this comment
Hi,



I'm playing a bit with Ingo and Vacation filter rule. I found that a 
simple improvement could be added.

When i type "my email address" in the vacation rule I want that this 
is the address used to send the Vacation reply mail to the sender...



So I've edited the lib/Script/procmail.php as below:

----------------------------------------------------------------------------------------------------------

                     $reason = $params['action-value']['reason'];

                     $this->_action[] = '  | formail -rD 8192 
.vacation.' . $address;

                     $this->_action[] = '    :0 ehc';

                     $this->_action[] = '    | (formail 
-rI"Precedence: junk" \\';

                     $this->_action[] = '       -A"X-Loop: ' . 
$address . '" \\';

                     $this->_action[] = '       -i"Subject: ' . 
$params['action-value']['subject'] . '" ; \\';

                     $this->_action[] = '       echo "' . 
str_replace("\r\n", '"; echo "', $reason) . '" \\';

                     $this->_action[] = '      ) | $SENDMAIL -oi -t -f 
' . $address . ' ';

                                                                       
                         ^^^^^^^^^^^^^^^^^^^

                     $this->_action[] = '';



----------------------------------------------------------------------------------------------------------



I think it could be helpful to anyone else...



Best Regards,

Alessio.

Saved Queries