<filename>ThreeBotPackages/threebot/mail/package.py
import sys
import os

from Jumpscale import j
from JumpscaleLibs.servers.mail.smtp import app


class Package(j.baseclasses.threebot_package):
    def prepare(self):
        """
        is called at install time
        :return:
        """
        pass

    def start(self):
        """
        called when the 3bot starts
        :return:
        """
        # TODO: ADD REVERSE PROXY

        server = j.servers.imap.get_instance("0.0.0.0", 7002)
        self.rack_server.add(name="smtp", server=server)
        self.gedis_server.actors_add(j.sal.fs.joinPaths(self.package_root, "actors"))

    def stop(self):
        """
        called when the 3bot stops
        :return:
        """
        pass

    def uninstall(self):
        """
        called when the package is no longer needed and will be removed from the threebot
        :return:
        """
        pass

<filename>ThreeBotPackages/threebot/mail/package.py
import sys
import os

from Jumpscale import j
from JumpscaleLibs.servers.mail.smtp import app


class Package(j.baseclasses.threebot_package):
    def prepare(self):
        """
        is called at install time
        :return:
        """
        pass

    def start(self):
        """
        called when the 3bot starts
        :return:
        """
        # TODO: ADD REVERSE PROXY

        server = j.servers.imap.get_instance("0.0.0.0", 7002)
        self.rack_server.add(name="smtp", server=server)
        self.gedis_server.actors_add(j.sal.fs.joinPaths(self.package_root, "actors"))

    def stop(self):
        """
        called when the 3bot stops
        :return:
        """
        pass

    def uninstall(self):
        """
        called when the package is no longer needed and will be removed from the threebot
        :return:
        """
        pass

is called at install time         :return: called when the 3bot starts         :return: # TODO: ADD REVERSE PROXY called when the 3bot stops         :return: called when the package is no longer needed and will be removed from the threebot         :return: