[ingo] proposal/patch for "newline" problem with procmail and vacation
Markus Krause
krause at biochem.mpg.de
Fri Apr 20 10:31:44 UTC 2007
Zitat von Volker Then <horde at volkerthen.com>:
> Quoting Markus Krause <krause at biochem.mpg.de>:
>
> > 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 observed that, too. I checked the latest CVS code. The generated
> .procmailrc still gives vacation messages like this:
>
> Ich bin zur Zeit nicht im B=C3=BCro zu erreichen. E-Mails werden
> weitergelei=\ntet.\n\nViele Gr=C3=BC=C3=9Fe\n\nVolker Then
>
> There seems to be a problem with the character encoding, too.
yes, and my proposed solution (just adding "-e ") does fix this:
man echo
-e enable interpretation of the backslash-escaped characters
regards
markus
>
> Bye
>
> Volker
>
>
> >
> > 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
> >
> >
> > --
> > Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: ingo-unsubscribe at lists.horde.org
> >
> >
>
>
>
> --
> Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: ingo-unsubscribe at lists.horde.org
>
--
+-----------------------------------------------------------------+
| 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://webmail.biochem.mpg.de
If you encounter any problems please report to rz-linux at biochem.mpg.de
More information about the ingo
mailing list