示例#1
0
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with hlimap.  If not, see <http://www.gnu.org/licenses/>.

#
# Helder Guerreiro <*****@*****.**>
#
# $Id$
#

from imapserver import ImapServer

'''High Level IMAP Lib

Introduction
============

This is a high level, object oriented library to handle IMAP connections from
python programs. It aims to hide the awkwardness of the imaplib shipped with
python.

This library only exports the L{ImapServer<ImapServer>} class.

ImapServer Class
================

class hlimap.ImapServer( host='localhost', port=None, ssl=False, keyfile=None,
                         certfile=None )
示例#2
0
def imap_login(host, port, ssl, user, password):
    '''Connects to host, does the login and returns an ImapServer object.
    '''
    M = ImapServer(host, port, ssl)
    M.login(user, password)
    return M
示例#3
0
## hlimap is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with hlimap.  If not, see <http://www.gnu.org/licenses/>.

#
# Helder Guerreiro <*****@*****.**>
#
# $Id$
#

from imapserver import ImapServer
'''High Level IMAP Lib

Introduction
============

This is a high level, object oriented library to handle IMAP connections from
python programs. It aims to hide the awkwardness of the imaplib shipped with
python.

This library only exports the L{ImapServer<ImapServer>} class.

ImapServer Class
================

class hlimap.ImapServer( host='localhost', port=None, ssl=False, keyfile=None,
                         certfile=None )
示例#4
0
def imap_login(host, port, ssl, user, password):
    '''Connects to host, does the login and returns an ImapServer object.
    '''
    M = ImapServer(host, port, ssl)
    M.login(user, password)
    return M