Coverage for janitoo.threads.email : 88%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# -*- coding: utf-8 -*-
Send notifications via email. Check account for ne emails
"""
This file is part of Janitoo.
Janitoo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Janitoo 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 Janitoo. If not, see <http://www.gnu.org/licenses/>.
"""
# Set default logging handler to avoid "No handler found" warnings. try: # Python 2.7+ # pragma: no cover from logging import NullHandler # pragma: no cover except ImportError: # pragma: no cover class NullHandler(logging.Handler): # pragma: no cover """NullHandler logger for python 2.6""" # pragma: no cover def emit(self, record): # pragma: no cover pass # pragma: no cover
return EmailThread(options) else:
"""The email thread
"""
"""Build the bus """ self.section = 'email' self.bus = JNTBus(options=self.options, oid=self.section, product_name="Email controller") |