from ..argparse_actions import PortOptionAction
from ..config.mail import MailConfiguration
-from ..config.mail import VALID_MAIL_METHODS
-__version__ = '0.2.8'
+__version__ = '0.2.9'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
help=_("Reply mail address for mails generated by this script.")
)
- method_list = format_list(VALID_MAIL_METHODS, do_repr=True)
+ methods = MailConfiguration.valid_mail_methods
+ method_list = format_list(methods, do_repr=True)
mail_group.add_argument(
'--mail-method',
- metavar=_("METHOD"), choices=VALID_MAIL_METHODS, dest="mail_method",
+ metavar=_("METHOD"), choices=methods, dest="mail_method",
help=_(
"Method for sending the mails generated by this script. "
"Valid values: {v}, default: {d!r}.").format(