[Comoblog-commit] comoblog/include/pear/Net POP3.php,1.1.1.1,1.2
Status: Inactive
Brought to you by:
markwallis
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-10-04 05:33:58
|
Update of /cvsroot/comoblog/comoblog/include/pear/Net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22181 Modified Files: POP3.php Log Message: RFE: 1280310 - Upgrade of PEAR library to support POP3 debugging Index: POP3.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/include/pear/Net/POP3.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- POP3.php 16 Aug 2005 05:49:46 -0000 1.1.1.1 +++ POP3.php 4 Oct 2005 05:33:50 -0000 1.2 @@ -1,647 +1,1229 @@ -<?php -// +-----------------------------------------------------------------------+ -// | Copyright (c) 2002, Richard Heyes | -// | All rights reserved. | -// | | -// | Redistribution and use in source and binary forms, with or without | -// | modification, are permitted provided that the following conditions | -// | are met: | -// | | -// | o Redistributions of source code must retain the above copyright | -// | notice, this list of conditions and the following disclaimer. | [...1845 lines suppressed...] + if (@substr(strtoupper($response), 0, 3) == '+OK') { + return true; + }else{ + if (@substr(strtoupper($response), 0, 4) == '-ERR') { + return $this->_raiseError($response); + }else{ + if (@substr(strtoupper($response), 0, 2) == '+ ') { + return true; + } + } + + } + return $this->_raiseError("Unknown Response ($response)"); + } + + + +} + +?> |