Tweaks
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 30 Nov 2009 07:19:57 +0000 (00:19 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 30 Nov 2009 18:27:41 +0000 (11:27 -0700)
imp/lib/Application.php
imp/lib/Compose.php
imp/test.php

index aedc47c..20ddf19 100644 (file)
@@ -112,7 +112,7 @@ class IMP_Application extends Horde_Registry_Application
      *             Horde_Exception
      *   [DEFAULT] - Authenticate to IMAP/POP server; on no auth redirect to
      *               login screen
-     * 'no_compress' - (boolean) Controls whether the page should be
+     * 'nocompress' - (boolean) Controls whether the page should be
      *                 compressed.
      * 'session_control' - (string) Sets special session control limitations:
      *   'netscape' - TODO; start read/write session
index 887bdb7..fa9833d 100644 (file)
@@ -1000,7 +1000,12 @@ class IMP_Compose
      * 'noattach' - (boolean) Don't add attachment information.
      * </pre>
      *
-     * @return array  TODO
+     * @return array  An array with the following keys:
+     * <pre>
+     * 'msg' - (string) The MIME message.
+     * 'recipients' - (array) The array of recipients.
+     * 'to' - (string) The recipients list in string format.
+     * </pre>
      * @throws Horde_Exception
      * @throws IMP_Compose_Exception
      */
@@ -2486,7 +2491,6 @@ class IMP_Compose
         }
 
         $vfs = VFS::singleton($GLOBALS['conf']['vfs']['type'], Horde::getDriverConfig('vfs', $GLOBALS['conf']['vfs']['type']));
-        // TODO: Garbage collection?
         $result = $vfs->writeData(self::VFS_DRAFTS_PATH, hash('md5', Horde_Util::getFormData('user')), $body, true);
         if ($result instanceof PEAR_Error) {
             return;
index 1b2767f..dd88d86 100644 (file)
@@ -117,11 +117,10 @@ if (!is_readable(HORDE_BASE . '/lib/Test.php')) {
 }
 
 require_once HORDE_BASE . '/lib/Test.php';
-$horde_test = new Horde_Test;
+$horde_test = new Horde_Test();
 
 /* IMP version. */
 $module = 'IMP';
-require_once dirname(__FILE__) . '/lib/Application.php';
 $app = new IMP_Application();
 $module_version = $app->version;