steffen: server/kolab-resource-handlers/kolab-resource-handlers/fbview/fbview/framework/Net_IMAP IMAP.php, NONE, 1.1 IMAPProtocol.php, NONE, 1.1 package.xml, NONE, 1.1

cvs at intevation.de cvs at intevation.de
Tue Sep 21 16:33:25 CEST 2004


Author: steffen

Update of /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/fbview/fbview/framework/Net_IMAP
In directory doto:/tmp/cvs-serv20540/Net_IMAP

Added Files:
	IMAP.php IMAPProtocol.php package.xml 
Log Message:
imported Net_IMAP

--- NEW FILE: IMAP.php ---
<?php
//
// +----------------------------------------------------------------------+
// | PHP Version 4                                                        |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group                                |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.02 of the PHP license,      |
// | that is bundled with this package in the file LICENSE, and is        |
// | available at through the world-wide-web at                           |
// | http://www.php.net/license/2_02.txt.                                 |
// | If you did not receive a copy of the PHP license and are unable to   |
// | obtain it through the world-wide-web, please send a note to          |
// | license at php.net so we can mail you a copy immediately.               |
// +----------------------------------------------------------------------+
// | Author: Damian Alejandro Fernandez Sosa <damlists at cnba.uba.ar>       |
// +----------------------------------------------------------------------+


[...1800 lines suppressed...]

    }


    function getListing($msg_id = null)
    {
        return $this->getMessagesList($msg_id);
    }


    function deleteMsg($msg_id){
        return $this->deleteMessages($msg_id);
    }





}
?>

--- NEW FILE: IMAPProtocol.php ---
<?php
//
// +----------------------------------------------------------------------+
// | PHP Version 4                                                        |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group                                |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.02 of the PHP license,      |
// | that is bundled with this package in the file LICENSE, and is        |
// | available at through the world-wide-web at                           |
// | http://www.php.net/license/2_02.txt.                                 |
// | If you did not receive a copy of the PHP license and are unable to   |
// | obtain it through the world-wide-web, please send a note to          |
// | license at php.net so we can mail you a copy immediately.               |
// +----------------------------------------------------------------------+
// | Author: Damian Alejandro Fernandez Sosa <damlists at cnba.uba.ar>       |
// +----------------------------------------------------------------------+
require_once 'Net/Socket.php';

[...2985 lines suppressed...]
                    $base64_part = '';

                } else {
                    $base64_part = sprintf("%s%s", $base64_part , $str[$i] );
                }
            } else {
                if ($str[$i] == '&') {
                    $base64_part = '&';
                } else {
                    $decoded_utf7 = sprintf("%s%s", $decoded_utf7 , $str[$i] );
                }
            }
        }
        return $decoded_utf7;
    }



}//Class
?>

--- NEW FILE: package.xml ---
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0">
<package version="1.0">
  <name>Net_IMAP</name>
  <summary>Provides an implementation of the IMAP protocol</summary>
  <description>Provides an implementation of the IMAP4Rev1 protocol using PEAR's Net_Socket and the optional Auth_SASL class.</description>
  <maintainers>
    <maintainer>
      <user>damian</user>
      <name>Damian Alejandro Fernandez Sosa</name>
      <email>damlists at cnba.uba.ar</email>
      <role>lead</role>
    </maintainer>
  </maintainers>
  <release>
    <version>1.0.2</version>
    <date>2004-08-04</date>
    <license>PHP License</license>
    <state>stable</state>
    <notes>* Fixed bug #1772
* Fixed bug #2028

* Changed getStorageQuota, getMessagesQuota,getACL defautting mailbox_name to current selected mailbox</notes>
    <deps>
      <dep type="pkg" rel="ge" version="1.0">Net_Socket</dep>
    </deps>
    <filelist>
      <file role="php" baseinstalldir="Net" name="IMAP.php"/>
      <file role="php" baseinstalldir="Net" name="IMAPProtocol.php"/>
      <file role="test" name="docs/test_IMAP.php"/>
      <file role="test" name="docs/test_IMAPProtocol.php"/>
    </filelist>
  </release>
  <changelog>
    <release>
      <version>1.0.1</version>
      <date>2004-05-22</date>
      <state>stable</state>
      <notes>* Fixed bug #1568
    
</notes>
    </release>
    <release>
      <version>1.0.0</version>
      <date>2004-05-22</date>
      <state>stable</state>
      <notes>* The package is marked as stable
* Fixed bug #1280
* Fixed a bug returning " , "  when the password is not correct

    
</notes>
    </release>
    <release>
      <version>0.7.1</version>
      <date>2004-02-12</date>
      <state>beta</state>
      <notes>* The parser was modified to parse any BODY[XXXXXX] response (not supported spaces in XXXXX yet) thanks to Richard Heyes for the tip

    
</notes>
    </release>
    <release>
      <version>0.7</version>
      <date>2004-02-02</date>
      <state>beta</state>
      <notes>- Fixed bug in mailboxExist
- Fixed bug #55
    
</notes>
    </release>
    <release>
      <version>0.6</version>
      <date>2003-07-20</date>
      <state>beta</state>
      <notes>- Fixed bugs 24706 and  24707
- Fixed method listsubscribedMailboxes() and now works like getMailboxes()
- added hasFlag() method to allow th check any flag the IMAP server has
- Modified isDeleted,isDraft,isAnswered,isFlagged,isSeen methods to use hasFlag to not duplicate the code
- Removed duplicated method getHierarchyDelimiter() i have the same method in IMAP.php and IMAPProtocol.php but
   in one class it is called getHierachyDelimiter and in the other getHierarchyDelimiter() (missed  'r' )
- Removed $_hierachyDelimiter variable (not needed anymore)
- Fixed cmdSetQuotaRoot now it can set both quotas storage and messages
- Reduced the class size by 10kbytes (IMAPProtocol.php)
- moved all redundant code to _genericCommand.
- Removed cmdUid() we don't need it anymore.
      
</notes>
    </release>
    <release>
      <version>0.5.1</version>
      <date>2003-07-14</date>
      <state>beta</state>
      <notes>- Fix warning in login() where the imap server does not have any Auth method suported
      
</notes>
    </release>
    <release>
      <version>0.5</version>
      <date>2003-07-12</date>
      <state>beta</state>
      <notes>- new getHierachyDelimiter() method to find the character used to separate subfolder parts (cyrus uses '.' , wu-imapd uses '/')
- added a 3rd parameter to getMailboxes() to return an array with mailboxnames and mailbox attributes instead of an array of names
- new method getACLRights() to list the Rights any user has over a mailbox without been administrator (this is relative to the user's INBOX)
      
</notes>
    </release>
    <release>
      <version>0.4</version>
      <date>2003-04-27</date>
      <state>beta</state>
      <notes>- new search() method
- new support for Message quotas (quotas for quantity of messages and not size)
- new getNumberOfRecentMessages() method
- new getNumberOfUnSeenMessages() method
- new getEnvelope() method
- new getSummary() method
- new Subscription related methods: unsubscribeMailbox(),listsubscribedMailboxes(),subscribeMailbox()
- updated Examples of use
- tested with Ipswitch Imail 6.06 IMAP Server
- tested with Cyrus Imapd 2.0.17 IMAP Server
- tested with uw-imapd  IMAP Server
- minor fixes in protocol parser
- fix the parsing of rfc email in _getAddressList()
- changed appendMessage() to make the mailbox parameter optional
- changed copyMessages() method (the messages list can be now an array)
- workarround about getMailboxes() to allow work with wu-imapd

- getSummary(), getMessages(),deleteMessages() can accept an array of numbers as msg_id to retrieve/delete msg_id that
  are in the array (designed to use the search() output as parammeter.
  For example: to delete all seen messages in current mailbox you can do:
        $imap->DeleteMessages($imap->search("SEEN"));

      
</notes>
    </release>
    <release>
      <version>0.3</version>
      <date>2003-03-05</date>
      <state>beta</state>
      <notes>- Fixed a lot of warnings and uninitialized variables(hope all of them)
- new getSummary method
- updated Examples of use
- tested with Ipswitch Imail 6.06 IMAP Server
- tested with Cyrus Imapd 2.0.17 IMAP Server
- tested with uw-imapd  IMAP Server
- minor fixes in protocol parser
- changed appendMessage() to make the mailbox parameter optional
- added Subscription related methods: unsubscribeMailbox(),listsubscribedMailboxes(),subscribeMailbox()
- workarround about getMailboxes() to allow work with wu-imapd
- new search() method
- added support for Message quotas (quotas for quantity of messages and not size)
- getSummary(), getMessages(),deleteMessages() can accept an array of numbers as msg_id to retrieve/delete msg_id that
  are in the array (designed to use the search() output as parammeter.
  For example: to delete all seen messages in current mailbox you can do:
        $imap->getDeleteMessages($imap->search("SEEN"));
      
</notes>
    </release>
    <release>
      <version>0.2</version>
      <date>2003-02-22</date>
      <state>beta</state>
      <notes>- Ups  I call require_once ./IMAPProtocol.php instead of require_once Net/IMAPProtocol.php sorry
- login method can authenticate with the following methods: DIGEST-MD4, CRAM-MD5, LOGIN and the login command
- A lot of new mailbox-related functions
- 2 Examples of use to the test  directory
- fixes in protocol parser
      
</notes>
    </release>
    <release>
      <version>0.1</version>
      <date>2003-02-22</date>
      <state>beta</state>
      <notes>- The IMAP Procotol generic parser is now implemented.
- Implemmented RFC2195
- Implemmented RFC2060
      
</notes>
    </release>
  </changelog>
</package>





More information about the commits mailing list