[ingo] proposal/patch for "newline" problem with procmail and vacation
Markus Krause
krause at biochem.mpg.de
Wed Apr 11 12:26:59 UTC 2007
Hi list,
i reported what i think is a bug some days ago and as there was no
response at all i checked the code and found a quite simple solution
(though still wondering if that really nobody else has observed yet ..)
i think there is a command line option missing in the .procmailrc
which is created by ingo in the "vacation part" to tell "echo" to
enable interpretation of backslash escapes: -e
patch -Naur:
--- procmail.php.orig 2007-04-11 14:25:03.000000000 +0200
+++ procmail.php.patched 2007-04-11 14:25:48.000000000 +0200
@@ -456,7 +456,7 @@
$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[] = ' echo -e "' .
str_replace("\r\n", '"; echo "', $reason) . '" \\';
$this->_action[] = ' ) | $SENDMAIL -oi -t';
$this->_action[] = '';
}
or is there a better solution?
regards
markus
+-----------------------------------------------------------------+
| Markus Krause, Mogli-Soft |
| Support for Mac OS X, Webmail/Horde, LDAP, RADIUS, MySQL |
| by order of the |
| Computing Center of the Max-Planck-Institute of Biochemistry |
+--------------------------------+--------------------------------+
| E-Mail: krause at biochem.mpg.de | Tel.: 089 - 89 40 85 99 |
| markus.krause at mac.com | Fax.: 089 - 89 40 85 98 |
| Skype: markus.krause | iChat: markus.krause at mac.com |
+--------------------------------+--------------------------------+
----------------------------------------------------------------------
This message was sent using https://webmail2.biochem.mpg.de
If you encounter any problems please report to rz-linux at biochem.mpg.de
More information about the ingo
mailing list