added phpdoc blocks.
[squirrelmail.git] / plugins / mail_fetch / functions.php
index 84dadc967ad15fe53eb81984dea295b4c8939e3a..544560685047b25f4b0fbf202de5cce5d52a3033 100644 (file)
@@ -3,7 +3,7 @@
    /**
     **  mail_fetch/functions.php
     **
-    **  Copyright (c) 1999-2001 The Squirrelmail Development Team
+    **  Copyright (c) 1999-2004 The SquirrelMail Project Team
     **  Licensed under the GNU GPL. For full terms see the file COPYING.
     **
     **  Functions for the mailfetch plugin.
     **  Adapted for MailFetch by Philippe Mingo <mingo@rotedic.com>
     **
     **  $Id$
+    * @package plugins
+    * @subpackage mail_fetch
     **/
 
+    /**
+     * hex2bin - document me
+     */
     function hex2bin( $data ) {
 
         /* Original code by josh@superfork.com */
 
         $len = strlen($data);
+        $newdata = '';
         for( $i=0; $i < $len; $i += 2 ) {
             $newdata .= pack( "C", hexdec( substr( $data, $i, 2) ) );
         }
@@ -73,4 +79,4 @@
         return $tmp;
     }
 
-?>
\ No newline at end of file
+?>