[Tickets #6643] Re: .vacation files are written into mail folder directory

bugs at horde.org bugs at horde.org
Thu Apr 24 17:39:46 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/6643
-----------------------------------------------------------------------
 Ticket             | 6643
 Updated By         | jas at cse.yorku.ca
 Summary            | .vacation files are written into mail folder directory
 Queue              | Ingo
 Version            | 1.2-RC2
 Type               | Bug
 State              | Feedback
 Priority           | 2. Medium
 Milestone          |
 Patch              |
 Owners             |
+New Attachment     | procmail.php.patch
-----------------------------------------------------------------------


jas at cse.yorku.ca (2008-04-24 13:39) wrote:

Hi.
I've never done a patch for Horde before, but I've given it a shot.

Users define the variable "TMPFILES" 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 "./.vacation.xxx" if TMPFILES is not defined, or
$TMPFILES/.vacation.xxx otherwise.

I don't know if "TMPFILES" is a suitable name.

I've tried, and it seems to work for me.





More information about the bugs mailing list