<?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>Delete Vacation DB on Disable</title>
  <pubDate>Sat, 05 Jul 2008 12:52:17 -0400</pubDate>
  <link>http://bugs.horde.org/ticket/1664</link>
  <atom:link rel="self" type="application/rss+xml" title="Delete Vacation DB on Disable" href="http://bugs.horde.org/ticket/1664/rss" />
  <description>Delete Vacation DB on Disable</description>

  
  
  <item>
   <title>Currently, when I enable a vacation message, it creates a da</title>
   <description>Currently, when I enable a vacation message, it creates a database of users that have gotten the vacation message from me, so as not to spam the person.  When you disable the message, the database of users isn't deleted, it remains.  On disable, give an option to delete the database?</description>
   <pubDate>Fri, 01 Apr 2005 15:13:32 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/1664#t6810</link>
  </item>
  <item>
   <title>Which driver are you using? I don't think any driver we curr</title>
   <description>Which driver are you using? I don't think any driver we currently have supports that.</description>
   <pubDate>Thu, 07 Apr 2005 12:20:02 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/1664#t7005</link>
  </item>
  <item>
   <title>Currently I'm using the 'prefs' driver, which is then using </title>
   <description>Currently I'm using the 'prefs' driver, which is then using a vfs driver:

It does work, it writes the .procmailrc script just fine, and the vacation database shows up, it's just not deleted when I choose to disable the vacation message in Ingo.

backends.php:

$backends['procmail'] = array(
    'driver' =&gt; 'vfs',
    'preferred' =&gt; 'domain.com',
    'hordeauth' =&gt; true,
    'params' =&gt; array(
        'hostspec' =&gt; 'ftp.domain.com',
        'procmailrc' =&gt; '.procmailrc',
        'port' =&gt; 21,
        'vfstype' =&gt; 'ftp'
    ),
    'script' =&gt; 'procmail',
    'scriptparams' =&gt; array(
        // What path style does the IMAP server use ['mbox'|'maildir']?
        'path_style' =&gt; 'mbox',
        'variables' =&gt; array(
            // Example for the $PATH variable
            // 'PATH' =&gt; '/usr/bin'
        )
    )
);</description>
   <pubDate>Thu, 07 Apr 2005 12:27:11 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/1664#t7007</link>
  </item>
  <item>
   <title>I don't know if I'm comfortable with deleting files that ing</title>
   <description>I don't know if I'm comfortable with deleting files that ingo doesn't directly generate.  What if we were to modify the script to put the vacation cache in a hidden directory or hidden file?  Something like:

    .vacation/username1@example.com

or

    .vacation.username2@example.com

I'm personally in favor of the first one.</description>
   <pubDate>Mon, 09 May 2005 00:19:52 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/1664#t8044</link>
  </item>
  <item>
   <title>That's fine, but that doesn't really resolve the problem, th</title>
   <description>That's fine, but that doesn't really resolve the problem, the vacation DB would still exist afterward and wouldn't be emptied for the next time the vacation message is created, giving us the same problem, or am I getting this completely wrong?</description>
   <pubDate>Mon, 09 May 2005 01:06:34 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/1664#t8045</link>
  </item>
  <item>
   <title>Ah, I see what you are saying now.  The following lines of t</title>
   <description>Ah, I see what you are saying now.  The following lines of the generated script handle deleting an old database:

  5:   FILEDATE=`ls -lcn --time-style=+%s 'vacation.test@ben.chavet.net' | awk '{ print $6 + (604800) }'`
  6:   DATE=`date +%s`
  7:   DUMMY=`test $FILEDATE -le $DATE &amp;&amp; rm 'vacation.test@ben.chavet.net'`

The database is deleted if it was created more than X days ago, where X is the user-defined &quot;Number of days between vacation replies&quot; on the vacation form.  So, re-enabling the vacation script will result in a new database if it has been more than X days since it was created.

So, this functionality isn't exactly obvous from the user's perspective. But if we hide the database files, it should just be a transparent thing that &quot;just works&quot; for the user.

The only potential problem I can see with this is if the user chooses some insanely large number of days to keep the database.</description>
   <pubDate>Sun, 22 May 2005 23:34:01 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/1664#t8438</link>
  </item>
  <item>
   <title>Ben's explanation makes sense to me and this has been sittin</title>
   <description>Ben's explanation makes sense to me and this has been sitting for two years. Rejecting.</description>
   <pubDate>Fri, 28 Dec 2007 18:10:53 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/1664#t40521</link>
  </item>
  

 </channel>
</rss>
