Giter Club home page Giter Club logo

mailbot's Introduction

MailBot

Build Status

MailBot: register callbacks to be executed on mail reception.

Hacking

Setup your environment:

git clone https://github.com/magopian/mailbot.git
cd mailbot

Hack and run the tests using Tox to test on all the supported python versions:

make test

There's also a live test suite, that you may run using the following command:

make livetest

Please note that to run live tests, you need to create a livetest_settings.py file with the following content:

# mandatory
HOST = 'your host here'
USERNAME = 'your username here'
PASSWORD = 'your password here'

# optional
# check http://imapclient.readthedocs.org/en/latest/#imapclient.IMAPClient)
PORT = 143  # port number, usually 143 or 993 if ssl is enabled
USE_UID = True
SSL = False
STREAM = False

For convenience, you can copy the provided sample, and modify it:

$ cp livetest_settings.py.sample livetest_settings.py

mailbot's People

Contributors

magopian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mailbot's Issues

ImportError: cannot import name 'MailBot'

I installed it through pip install mailbot. And it installed succesfully and registers as a package: 'mailbot==0.3'

From Docs: https://mailbot.readthedocs.org/en/latest/

from mailbot import MailBot, register

from mycallbacks import MyCallback

mailbot = MailBot('imap.myserver.com', 'username', 'password')

# register your callback
register(MyCallback)

# check the unprocessed messages and trigger the callback
mailbot.process_messages()

However whenever the code above is run, output = "ImportError: cannot import name 'MailBot'"

Python3 Gmail

Because you are using Python3, instead of using:

email.message_from_string(raw_email)
use:

email.message_from_bytes(raw_email)

Using the first line of code, on a gmail client, would raise an exception.

can't install for Python v2.7 on Raspberry Pi

Hi,

I setup a fresh RaspberryPi and want to install mailbot in a fresh Python v2.7 virtual environment. I did it before on a RaspberryPi using Python v3.4 . And it kind of worked then. But now I get these errors:

(python27) pi@RaspberryPi-01 ~$ pip install mailbot
Requirement already satisfied (use --upgrade to upgrade): mailbot in /home/pi/.virtualenvs/python27/lib/python2.7/site-packages/mailbot-0.4.dev0-py2.7.egg
Collecting imapclient (from mailbot)
  Downloading IMAPClient-1.0.1-py2.py3-none-any.whl (68kB)
    100% |################################| 71kB 389kB/s
Collecting pyopenssl>=0.15.1 (from imapclient->mailbot)
  Downloading pyOpenSSL-16.0.0-py2.py3-none-any.whl (45kB)
    100% |################################| 51kB 412kB/s
Collecting backports.ssl>=0.0.9 (from imapclient->mailbot)
  Downloading backports.ssl-0.0.9.tar.gz
Collecting six (from imapclient->mailbot)
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting mock==1.3.0 (from imapclient->mailbot)
  Downloading mock-1.3.0-py2.py3-none-any.whl (56kB)
    100% |################################| 61kB 392kB/s
Collecting cryptography>=1.3 (from pyopenssl>=0.15.1->imapclient->mailbot)
  Downloading cryptography-1.3.1.tar.gz (383kB)
    100% |################################| 389kB 123kB/s
Collecting funcsigs (from mock==1.3.0->imapclient->mailbot)
  Downloading funcsigs-0.4-py2.py3-none-any.whl
Collecting pbr>=0.11 (from mock==1.3.0->imapclient->mailbot)
  Downloading pbr-1.8.1-py2.py3-none-any.whl (89kB)
    100% |################################| 92kB 399kB/s
Collecting idna>=2.0 (from cryptography>=1.3->pyopenssl>=0.15.1->imapclient->mailbot)
  Downloading idna-2.1-py2-none-any.whl (54kB)
    100% |################################| 61kB 302kB/s
Collecting pyasn1>=0.1.8 (from cryptography>=1.3->pyopenssl>=0.15.1->imapclient->mailbot)
  Downloading pyasn1-0.1.9-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): setuptools>=11.3 in /home/pi/.virtualenvs/python27/lib/python2.7/site-packages (from cryptography>=1.3->pyopenssl>=0.15.1->imapclient->mailbot)
Collecting enum34 (from cryptography>=1.3->pyopenssl>=0.15.1->imapclient->mailbot)
  Downloading enum34-1.1.2.tar.gz (46kB)
    100% |################################| 51kB 408kB/s
Collecting ipaddress (from cryptography>=1.3->pyopenssl>=0.15.1->imapclient->mailbot)
  Downloading ipaddress-1.0.16-py27-none-any.whl
Collecting cffi>=1.4.1 (from cryptography>=1.3->pyopenssl>=0.15.1->imapclient->mailbot)
  Downloading cffi-1.5.2.tar.gz (388kB)
    100% |################################| 389kB 135kB/s
Collecting pycparser (from cffi>=1.4.1->cryptography>=1.3->pyopenssl>=0.15.1->imapclient->mailbot)
  Downloading pycparser-2.14.tar.gz (223kB)
    100% |################################| 225kB 210kB/s
Building wheels for collected packages: backports.ssl, cryptography, enum34, cffi, pycparser
  Running setup.py bdist_wheel for backports.ssl ... done
  Stored in directory: /home/pi/.cache/pip/wheels/6d/5c/8f/9b900de0add0eb5018c2f67ff28430d6e3a6b936de1a600cc8
  Running setup.py bdist_wheel for cryptography ... error
  Complete output from command /home/pi/.virtualenvs/python27/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jOeg1D/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)
(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpRfD8JTpip-wheel- --python-tag cp27:
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable                                                                                                                                                           [191/1949]
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
  compilation terminated.
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-jOeg1D/cryptography/setup.py", line 335, in <module>
      **keywords_with_side_effects(sys.argv)
    File "/opt/python2.7/lib/python2.7/distutils/core.py", line 111, in setup
      _setup_distribution = dist = klass(attrs)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/dist.py", line 269, in __init__
      self.fetch_build_eggs(attrs['setup_requires'])
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/dist.py", line 313, in fetch_build_eggs
      replace_conflicting=True,
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 827, in resolve
      dist = best[req.key] = env.best_match(req, ws, installer)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1072, in best_match
      return self.obtain(req, installer)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1084, in obtain
      return installer(requirement)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/dist.py", line 380, in fetch_build_egg
      return cmd.easy_install(req)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 640, in easy_install
      return self.install_item(spec, dist.location, tmpdir, deps)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 670, in install_item
      dists = self.install_eggs(spec, download, tmpdir)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 850, in install_eggs
      return self.build_and_install(setup_script, setup_base)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1078, in build_and_install
      self.run_setup(setup_script, setup_base, args)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1066, in run_setup
      raise DistutilsError("Setup script exited with %s" % (v.args[0],))
  distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for cryptography
  Running setup.py clean for cryptography
  Complete output from command /home/pi/.virtualenvs/python27/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jOeg1D/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)
(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" clean --all:
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'                                                                                                                                           [127/1949]
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
  compilation terminated.
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-jOeg1D/cryptography/setup.py", line 335, in <module>
      **keywords_with_side_effects(sys.argv)
    File "/opt/python2.7/lib/python2.7/distutils/core.py", line 111, in setup
      _setup_distribution = dist = klass(attrs)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/dist.py", line 269, in __init__
      self.fetch_build_eggs(attrs['setup_requires'])
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/dist.py", line 313, in fetch_build_eggs
      replace_conflicting=True,
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 827, in resolve
      dist = best[req.key] = env.best_match(req, ws, installer)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1072, in best_match
      return self.obtain(req, installer)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1084, in obtain
      return installer(requirement)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/dist.py", line 380, in fetch_build_egg
      return cmd.easy_install(req)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 640, in easy_install
      return self.install_item(spec, dist.location, tmpdir, deps)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 670, in install_item
      dists = self.install_eggs(spec, download, tmpdir)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 850, in install_eggs
      return self.build_and_install(setup_script, setup_base)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1078, in build_and_install
      self.run_setup(setup_script, setup_base, args)
    File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1066, in run_setup
      raise DistutilsError("Setup script exited with %s" % (v.args[0],))
  distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed cleaning build dir for cryptography
  Running setup.py bdist_wheel for enum34 ... done
  Stored in directory: /home/pi/.cache/pip/wheels/1a/4e/a5/bc564dd03d9abe991425c88d88aa8c5c99ad9a733551b69b4e
  Running setup.py bdist_wheel for cffi ... error
  Complete output from command /home/pi/.virtualenvs/python27/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jOeg1D/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file_
_).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp8pfsvmpip-wheel- --python-tag cp27:
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable                                                                                                                                                            [63/1949]
  No package 'libffi' found
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-armv6l-2.7
  creating build/lib.linux-armv6l-2.7/cffi
  copying cffi/cparser.py -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/vengine_cpy.py -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/__init__.py -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/recompiler.py -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/lock.py -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/setuptools_ext.py -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/ffiplatform.py -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/gc_weakref.py -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/cffi_opcode.py -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/model.py -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/commontypes.py -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/vengine_gen.py -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/api.py -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/backend_ctypes.py -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/verifier.py -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/_cffi_include.h -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/parse_c_type.h -> build/lib.linux-armv6l-2.7/cffi
  copying cffi/_embedding.h -> build/lib.linux-armv6l-2.7/cffi
  running build_ext
  building '_cffi_backend' extension
  creating build/temp.linux-armv6l-2.7
  creating build/temp.linux-armv6l-2.7/c
  gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/opt/python2.7/include/python2.7 -c c/_cffi_backend.c
-o build/temp.linux-armv6l-2.7/c/_cffi_backend.o
  c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
  compilation terminated.
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for cffi
  Running setup.py clean for cffi
  Running setup.py bdist_wheel for pycparser ... done
  Stored in directory: /home/pi/.cache/pip/wheels/c7/28/31/bac6d0b118c0bdcbf57f9219afdf2e624379c07efa6c769dbc
Successfully built backports.ssl enum34 pycparser
Failed to build cryptography cffi
Installing collected packages: idna, pyasn1, six, enum34, ipaddress, pycparser, cffi, cryptography, pyopenssl, backports.ssl, funcsigs, pbr, mock, imapclient
  Running setup.py install for cffi ... error
    Complete output from command /home/pi/.virtualenvs/python27/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jOeg1D/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__fil
e__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-On0CM0-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/.virtualenvs/python27/i
nclude/site/python2.7/cffi:
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    Package libffi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libffi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libffi' found
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-armv6l-2.7
    creating build/lib.linux-armv6l-2.7/cffi
    copying cffi/cparser.py -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/__init__.py -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/recompiler.py -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/lock.py -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/gc_weakref.py -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/model.py -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/commontypes.py -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/api.py -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/verifier.py -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-armv6l-2.7/cffi
    copying cffi/_embedding.h -> build/lib.linux-armv6l-2.7/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-armv6l-2.7
    creating build/temp.linux-armv6l-2.7/c
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/opt/python2.7/include/python2.7 -c c/_cffi_backend.
c -o build/temp.linux-armv6l-2.7/c/_cffi_backend.o
    c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/home/pi/.virtualenvs/python27/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jOeg1D/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\
n', '\n'), __file__, 'exec'))" install --record /tmp/pip-On0CM0-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/.virtualenvs/python27/include/site/python2.7/cf
fi" failed with error code 1 in /tmp/pip-build-jOeg1D/cffi/

It seems to have something to do with libffi but I don't know how to fix this issue.

So, no try to install this module has been successful:

  • apt-get install mailbot (found on the docu page)
  • pip install -e http://github.com/magopian/mailbot/ (found on the docu page)
  • python setup.py install (after cloning locally and cd-ing into folder)

Is there any help?

OpenSSL.SSL.Error from imapclient

Hi, there. When i try to login mail server with ssl =True, I meet this:

Traceback (most recent call last):
  File "main.py", line 103, in <module>
    mailbot = MailBot('imap.xxx.com', '[email protected]', ******',ssl=True)
  File "E:\Python27\lib\site-packages\mailbot\mailbot.py", line 33, in __init__
    ssl=ssl, stream=stream)
  File "E:\Python27\lib\site-packages\imapclient\imapclient.py", line 152, in __init__
    self._imap = self._create_IMAP4()
  File "E:\Python27\lib\site-packages\imapclient\imapclient.py", line 164, in _create_IMAP4
    self._timeout)
  File "E:\Python27\lib\site-packages\imapclient\tls.py", line 171, in __init__
    imaplib.IMAP4.__init__(self, host, port)
  File "E:\Python27\lib\imaplib.py", line 173, in __init__
    self.open(host, port)
  File "E:\Python27\lib\site-packages\imapclient\tls.py", line 177, in open
    self.sock = wrap_socket(sock, self.ssl_context, host)
  File "E:\Python27\lib\site-packages\imapclient\tls.py", line 144, in wrap_socket
    ssl_context = create_default_context()
  File "E:\Python27\lib\site-packages\imapclient\tls.py", line 127, in create_default_context
    context.load_verify_locations(cadata=certs)
  File "E:\Python27\lib\site-packages\backports\ssl\core.py", line 654, in load_verify_locations
    self._ctx.load_verify_locations(cafile, capath)
  File "E:\Python27\lib\site-packages\OpenSSL\SSL.py", line 685, in load_verify_locations
    _raise_current_error()
  File "E:\Python27\lib\site-packages\OpenSSL\_util.py", line 54, in exception_from_error_queue
    raise exception_type(errors)
OpenSSL.SSL.Error: []

On System: win 10 64bit
Runtime: Python 2.7.13

At last, I found a solution from stackoverflow imapClient error (diff version python and windows) which require the old version of imapClient.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.