from fb_tools.multi_config import MultiConfigError, BaseMultiConfig
from fb_tools.multi_config import DEFAULT_ENCODING
+from fb_tools import MailAddress
+
# Own modules
from .errors import PpError
-from .mailaddress import MailAddress
-
from .xlate import XLATOR
CONFIG_DIR = 'pixelpark'
-__version__ = '0.1.1'
+__version__ = '0.1.2'
LOG = logging.getLogger(__name__)
VALID_MAIL_METHODS = ('smtp', 'sendmail')
current_user_name = pwd.getpwuid(os.getuid()).pw_name
current_user_gecos = pwd.getpwuid(os.getuid()).pw_gecos
- default_mail_from = MailAddress(current_user_name, socket.getfqdn())
+ default_mail_from = MailAddress(user=current_user_name, domain=socket.getfqdn())
# -------------------------------------------------------------------------
def __init__(
from fb_tools.xlate import format_list
+from fb_tools import MailAddress
+
from .xlate import XLATOR
from .argparse_actions import PortOptionAction
from .mail_config import MailConfiguration
from .mail_config import VALID_MAIL_METHODS
-from .mailaddress import MailAddress
-
-__version__ = '0.2.5'
+__version__ = '0.2.6'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
from fb_tools.multi_config import MultiConfigError, BaseMultiConfig
from fb_tools.multi_config import DEFAULT_ENCODING
+from fb_tools import MailAddress
+
from . import __version__ as GLOBAL_VERSION
from . import MAX_PORT_NUMBER, DEFAULT_CONFIG_DIR
-from .mailaddress import MailAddress
-
from .xlate import XLATOR
-__version__ = '0.1.8'
+__version__ = '0.1.9'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
current_user_name = pwd.getpwuid(os.getuid()).pw_name
current_user_gecos = pwd.getpwuid(os.getuid()).pw_gecos
- default_mail_from = MailAddress(current_user_name, socket.getfqdn())
+ default_mail_from = MailAddress(user=current_user_name, domain=socket.getfqdn())
default_mail_from_complete = '{n} <{m}>'.format(n=current_user_gecos, m=default_mail_from)
valid_mail_methods = VALID_MAIL_METHODS