<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="http://bugs.horde.org/themes/feed-rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <title>.vacation files are written into mail folder directory</title>
  <pubDate>Tue, 08 Jul 2008 22:38:33 -0400</pubDate>
  <link>http://bugs.horde.org/ticket/6643</link>
  <atom:link rel="self" type="application/rss+xml" title=".vacation files are written into mail folder directory" href="http://bugs.horde.org/ticket/6643/rss" />
  <description>.vacation files are written into mail folder directory</description>

  
  
  <item>
   <title>I'm using Ingo with the procmail filter.  When vacation mode</title>
   <description>I'm using Ingo with the procmail filter.  When vacation mode is used, the .vacation file that is used to keep track of who e-mailed is stored in $MAILDIR (configured in .procmailrc) because procmail does a chdir to this directory during startup.  I consider this is a &quot;bug&quot; since IMP then displays the .vacation file in the folder list.  To get around this, I would like to see an optional variable that could be set in the INGO config that could be used to redirect the .vacation file  to a different directory.  If the variable is set, rather than seeing:

 FILEDATE=`test -f '.vacation.USER@cse.yorku.ca' &amp;&amp; ls -lcn --time-style=+%s '.vacation.USER@cse.yorku.ca' | awk '{ print $6 + (604800) }'`

... you would see something like:

FILEDATE=`test -f '$TMPFILES/.vacation.USER@cse.yorku.ca' &amp;&amp; ls -lcn --time-style=+%s '$TMPFILES/.vacation.USER@cse.yorku.ca' | awk '{ print $6 + (604800) }'`
</description>
   <pubDate>Wed, 23 Apr 2008 11:02:51 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6643#t44823</link>
  </item>
  <item>
   <title>Seems reasonable - are you able to do a patch for this?</title>
   <description>Seems reasonable - are you able to do a patch for this?</description>
   <pubDate>Wed, 23 Apr 2008 18:09:10 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6643#t44840</link>
  </item>
  <item>
   <title>Hi.
I've never done a patch for Horde before, but I've give</title>
   <description>Hi.
I've never done a patch for Horde before, but I've given it a shot.

Users define the variable &quot;TMPFILES&quot; in backends.php:

eg. $backends['procmail']['scriptparams']['variables']['TMPFILES'] = '/local/home/USER';

and then I've patched ingo/lib/Script/procmail.php with the attached patch.  This simply replaces a couple of lines that write .vacation files with:
${TMPFILES:-.}/
... so you get &quot;./.vacation.xxx&quot; if TMPFILES is not defined, or $TMPFILES/.vacation.xxx otherwise.

I don't know if &quot;TMPFILES&quot; is a suitable name.

I've tried, and it seems to work for me.
</description>
   <pubDate>Thu, 24 Apr 2008 13:39:45 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6643#t44893</link>
  </item>
  <item>
   <title>Looks good to me - committed, thanks! I used VACATION_DIR fo</title>
   <description>Looks good to me - committed, thanks! I used VACATION_DIR for the variable name since it's all vacation files. I think there was one more place it was needed too:

ls -lcn --time-style=+%s \'.vacation.' . $address . '\' |

.. so I added it on that line also. Let me know if that's not right.</description>
   <pubDate>Thu, 01 May 2008 23:52:06 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6643#t45083</link>
  </item>
  <item>
   <title>Thanks for picking up that error and integrating the change.</title>
   <description>Thanks for picking up that error and integrating the change.

</description>
   <pubDate>Mon, 05 May 2008 10:42:25 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6643#t45171</link>
  </item>
  

 </channel>
</rss>
