# Path: moa/sysConf.py
# USERCONFIGFILE = os.path.join(os.path.expanduser('~'),
#                               '.config', 'moa', 'config')
# SYSCONFIGFILE = os.path.join('etc', 'moa', 'config')
# def _interpret_var(v):
#     def __init__(self):
#     def getUser(self):
#     def saveUser(self, conf):
#     def getVersion(self):
# class SysConf(Yaco.Yaco):


import os
import sys
import getpass
import socket
import moa.logger
import moa.ui
import moa.utils
from datetime import datetime, timedelta
from moa.sysConf import sysConf
# Copyright 2013 Mark Fiers
#
# This file is part of Moa - http://github.com/mfiers/Moa
#
# Licensed under the GPL license (see 'COPYING')
#
"""
**mail** - Tweet results
------------------------

Use mailer to send a message upon job completion

Depends on a working "mail" command in the path.
"""


l = moa.logger.getLogger(__name__)



def get_core_message(job):


# Path: moa/sysConf.py
# USERCONFIGFILE = os.path.join(os.path.expanduser('~'),
#                               '.config', 'moa', 'config')
# SYSCONFIGFILE = os.path.join('etc', 'moa', 'config')
# def _interpret_var(v):
#     def __init__(self):
#     def getUser(self):
#     def saveUser(self, conf):
#     def getVersion(self):
# class SysConf(Yaco.Yaco):


# Path: moa/plugin/system/mail.py
import os
import sys
import getpass
import socket
import moa.logger
import moa.ui
import moa.utils
from datetime import datetime, timedelta
from moa.sysConf import sysConf

# Copyright 2013 Mark Fiers
#
# This file is part of Moa - http://github.com/mfiers/Moa
#
# Licensed under the GPL license (see 'COPYING')
#
"""
**mail** - Tweet results
------------------------

Use mailer to send a message upon job completion

Depends on a working "mail" command in the path.
"""


l = moa.logger.getLogger(__name__)



def get_core_message(job):


    template = sysConf.job.template.get('name', "")