def parsetimer(config):
    """parse the configuration of the messages section"""
    timerconf = {}
    section = 'timer'
    possibleconfs = ['days', 'hours']
    for confkey in possibleconfs:
        if config.has_option(section, confkey):
            timerconf[confkey] = config.get(section, confkey)
    return timerconf
