/**
** mail_fetch/functions.php
**
- ** Copyright (c) 1999-2002 The SquirrelMail Project Team
+ ** Copyright (c) 1999-2003 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) ) );
}