コード例 #1
0
ファイル: __init__.py プロジェクト: jadolg/webpymail
## 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
ファイル: shortcuts.py プロジェクト: dlobue/hlimap
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
ファイル: __init__.py プロジェクト: thisjunjiang/webpymail
## 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
ファイル: shortcuts.py プロジェクト: thisjunjiang/webpymail
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