[dev] [patch] new sam driver

Ben Chavet ben at chavet.net
Fri Apr 9 14:35:52 PDT 2004


>> Modified Files:
>>   sam/lib/Driver.php  <-- Let me know if this breaks anything.
>
> It makes it do type conversion, so I didn't commit this part - what do
> you need
> it for?

The problem was that when a boolean value was true, it wouldn't set the
checkmark properly. The attached patch for spamd_ftp.php will take care of
this.

--Ben
-------------- next part --------------
Index: spamd_ftp.php
===================================================================
RCS file: /repository/sam/lib/Driver/spamd_ftp.php,v
retrieving revision 1.2
diff -u -r1.2 spamd_ftp.php
--- spamd_ftp.php	9 Apr 2004 20:19:31 -0000	1.2
+++ spamd_ftp.php	9 Apr 2004 21:34:02 -0000
@@ -1,4 +1,11 @@
 <?php
+
+/** Backend-specific 'false' value. */
+define('_SAM_OPTION_OFF', '0');
+
+/** Backend-specific 'true' value. */
+define('_SAM_OPTION_ON',  '1');
+
 /**
  * $Horde: sam/lib/Driver/spamd_ftp.php,v 1.2 2004/04/09 20:19:31 chuck Exp $
  *
@@ -52,7 +59,7 @@
      * @param optional array $params     A hash containing connection
      *                                   parameters.
      */
-    function SAM_Driver_ftp($user, $params = array())
+    function SAM_Driver_spamd_ftp($user, $params = array())
     {
         $default_params = array(
             'hostspec'   => 'localhost',


More information about the dev mailing list