<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>patch for &quot;newline&quot; with procmail and vacation</title> 
  <pubDate>Fri, 10 Apr 2026 17:02:25 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/5273</link> 
  <atom:link rel="self" type="application/rss+xml" title="patch for &quot;newline&quot; with procmail and vacation" href="https://bugs.horde.org/ticket/5273/rss" /> 
  <description>patch for &quot;newline&quot; with procmail and vacation</description> 
 
   
   
  <item> 
   <title>using ingo/procmail for setting vacation messages:

if a use</title> 
   <description>using ingo/procmail for setting vacation messages:

if a user enters text which contains line breaks (carriage return, newline ...(?)) e.g. to seperate the complimentary close from the text or additional information .procmail then has each linebreak translated into &quot;\r\n&quot;, example:



----- entered into ingo form:

I am currently on vacation.

As soon as i return i will answer your mail personally.



With best regards

    M. Krause

-----



this leads to the following in the procmail script:

----- .procmailrc

echo &quot;I am currently on vacation.\\r\\nAs soon as i return i will 

answer your mail personally.\\r\\n\\r\\nWith best regards\\r\\n   M. 

Krause&quot; \

-----



which is then display (e.g. in thunderbird) as one line:

-----

I am currently on vacation.\\r\\nAs soon as i return i will answer 

your mail personally.\\r\\n\\r\\nWith best regards\\r\\n   M. Krause

-----



i think there is a command line option missing in the .procmailrc which is created by ingo in the &quot;vacation part&quot; to tell &quot;echo&quot; 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-&gt;_action[] = &#039;    | (formail -rI&quot;Precedence: junk&quot; \\&#039;;

                      $this-&gt;_action[] = &#039;       -A&quot;X-Loop: &#039; . $address . &#039;&quot; \\&#039;;

                      $this-&gt;_action[] = &#039;       -i&quot;Subject: &#039; . $params[&#039;action-value&#039;][&#039;subject&#039;] . &#039;&quot; ; \\&#039;;

-                    $this-&gt;_action[] = &#039;       echo &quot;&#039; . str_replace(&quot;\r\n&quot;, &#039;&quot;; echo &quot;&#039;, $reason) . &#039;&quot; \\&#039;;

+                    $this-&gt;_action[] = &#039;       echo -e &quot;&#039; . str_replace(&quot;\r\n&quot;, &#039;&quot;; echo &quot;&#039;, $reason) . &#039;&quot; \\&#039;;

                      $this-&gt;_action[] = &#039;      ) | $SENDMAIL -oi -t&#039;;

                      $this-&gt;_action[] = &#039;&#039;;

                  }

-----------



</description> 
   <pubDate>Fri, 20 Apr 2007 22:44:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5273#t32040</link> 
  </item> 
   
  <item> 
   <title>This was not quite sufficient. Can you folks please try the </title> 
   <description>This was not quite sufficient. Can you folks please try the following patch: http://cvs.horde.org/diff.php?f=ingo%2Flib%2FScript%2Fprocmail.php&amp;r1=1.46.10.16&amp;r2=1.46.10.17&amp;t=unified</description> 
   <pubDate>Wed, 25 Apr 2007 17:32:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5273#t32258</link> 
  </item> 
   
  <item> 
   <title>&gt; This was not quite sufficient. 

what do you mean by that?</title> 
   <description>&gt; This was not quite sufficient. 

what do you mean by that?



&gt; Can you folks please try the following 

&gt; patch: 

&gt; http://cvs.horde.org/diff.php?f=ingo%2Flib%2FScript%2Fprocmail.php&amp;r1=1.46.10.16&amp;r2=1.46.10.17&amp;t=unified



it seems to work here ... (ingo 1.1.3)</description> 
   <pubDate>Wed, 25 Apr 2007 18:11:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5273#t32266</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; This was not quite sufficient.

&gt; what do you mean by tha</title> 
   <description>&gt;&gt; This was not quite sufficient.

&gt; what do you mean by that?



That your changes alone didn&#039;t fix it.</description> 
   <pubDate>Wed, 25 Apr 2007 21:42:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5273#t32277</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
