<?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>vacation rule : maildrop/mailbot locks</title> 
  <pubDate>Sun, 05 Apr 2026 20:44:13 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8577</link> 
  <atom:link rel="self" type="application/rss+xml" title="vacation rule : maildrop/mailbot locks" href="https://bugs.horde.org/ticket/8577/rss" /> 
  <description>vacation rule : maildrop/mailbot locks</description> 
 
   
   
  <item> 
   <title>mailbot uses a lock before opening sender&#039;s email database. </title> 
   <description>mailbot uses a lock before opening sender&#039;s email database. the database file is defined with arg &#039;-d &#039;.

In file ingo/lib/Script/maildrop.php:523, database filename is defined as &#039;vacation&#039;. Therefore mailbot uses file &#039;vacation.lock&#039; as the file lock , which is the same file lock defined for maildrop (line 516).

so, if a user set start and end vacation dates, maildrop and mailbot will try to lock the same file which will never work.



here is a patch:



-            $this-&gt;_action[] = &quot;  cc \&quot;| mailbot -D &quot; . $params[&#039;action-value&#039;][&#039;days&#039;] . &quot; -c &#039;&quot; . NLS::getCharset() . &quot;&#039; -t \$HOME/vacation.msg -d \$HOME/vacation -A &#039;From: $from&#039; -s &#039;&quot; . MIME::encode($params[&#039;action-value&#039;][&#039;subject&#039;], NLS::getCharset())  . &quot;&#039; /usr/sbin/sendmail -t \&quot;&quot;;

+            $this-&gt;_action[] = &quot;  cc \&quot;| mailbot -D &quot; . $params[&#039;action-value&#039;][&#039;days&#039;] . &quot; -c &#039;&quot; . NLS::getCharset() . &quot;&#039; -t \$HOME/vacation.msg -d \$HOME/vacationbot -A &#039;From: $from&#039; -s &#039;&quot; . MIME::encode($params[&#039;action-value&#039;][&#039;subject&#039;], NLS::getCharset())  . &quot;&#039; /usr/sbin/sendmail -t \&quot;&quot;;





</description> 
   <pubDate>Tue, 15 Sep 2009 11:36:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8577#t55746</link> 
  </item> 
   
  <item> 
   <title>To not destroy the seen-database if Ingo is being updated wh</title> 
   <description>To not destroy the seen-database if Ingo is being updated while auto-responses are active, wouldn&#039;t it make more sense to rename the vacation lock file instead? I don&#039;t follow the maildrop code completely, but isn&#039;t the vacation.lock created by flock only when processing the current message? That wouldn&#039;t break anything if upgrading Ingo on an active system.</description> 
   <pubDate>Tue, 15 Sep 2009 15:11:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8577#t55748</link> 
  </item> 
   
  <item> 
   <title>&gt; To not destroy the seen-database if Ingo is being updated </title> 
   <description>&gt; To not destroy the seen-database if Ingo is being updated while 

&gt; auto-responses are active, wouldn&#039;t it make more sense to rename the 

&gt; vacation lock file instead? I don&#039;t follow the maildrop code 

&gt; completely, but isn&#039;t the vacation.lock created by flock only when 

&gt; processing the current message? That wouldn&#039;t break anything if 

&gt; upgrading Ingo on an active system.



yes, changing maildrop&#039;s file lock will prevent live/production system from loosing user&#039;s db history.



So I guess the path would be (or some other file name!) :



-  $this-&gt;_action[] = &#039;  flock &quot;vacation.lock&quot; {&#039;;

+ $this-&gt;_action[] = &#039;  flock &quot;vacationdrop.lock&quot; {&#039;;

</description> 
   <pubDate>Tue, 15 Sep 2009 15:26:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8577#t55750</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Use a lock n</title> 
   <description>Changes have been made in Git for this ticket:

Use a lock name that&#039;s different from mailbot&#039;s seen database name (Bug #8577).

http://git.horde.org/diff.php/ingo/lib/Script/Maildrop.php?rt=horde-hatchery&amp;r1=9b22223f642b6ab65a71694ff34f709f06dfce9d&amp;r2=5a978e4ae04ac8ffa7b04046f91416d7aa347d01</description> 
   <pubDate>Tue, 15 Sep 2009 21:00:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8577#t55753</link> 
  </item> 
   
  <item> 
   <title>Thanks for the confirmation.</title> 
   <description>Thanks for the confirmation.</description> 
   <pubDate>Tue, 15 Sep 2009 21:01:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8577#t55754</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

MFH: Use a l</title> 
   <description>Changes have been made in CVS for this ticket:

MFH: Use a lock name that&#039;s different from mailbot&#039;s seen database name (Bug #8577).
http://cvs.horde.org/diff.php/ingo/docs/CHANGES?rt=horde&amp;r1=1.55.2.126&amp;r2=1.55.2.127&amp;ty=u
http://cvs.horde.org/diff.php/ingo/lib/Script/maildrop.php?rt=horde&amp;r1=1.7.2.14&amp;r2=1.7.2.15&amp;ty=u</description> 
   <pubDate>Tue, 15 Sep 2009 21:09:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8577#t55755</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Use a lock n</title> 
   <description>Changes have been made in Git for this ticket:

Use a lock name that&#039;s different from mailbot&#039;s seen database name (Bug #8577).

http://git.horde.org/diff.php/ingo/lib/Script/Maildrop.php?rt=horde-git&amp;r1=9b22223f642b6ab65a71694ff34f709f06dfce9d&amp;r2=5a978e4ae04ac8ffa7b04046f91416d7aa347d01</description> 
   <pubDate>Wed, 13 Jan 2010 00:11:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8577#t57612</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
