':param config: Representing the offlineimap configuration file.
:type config: :class:`offlineimap.CustomConfig.CustomConfigParser`
:param name: A (str) string denoting the name of the Account
as configured.'

def __init__(self, config, name):

    self.config = config
    self.name = name
    self.metadatadir = config.getmetadatadir()
    self.localeval = config.getlocaleval()
    self.ui = getglobalui()
    self.refreshperiod = self.getconffloat('autorefresh', 0.0)
    self.dryrun = self.config.getboolean('general', 'dry-run')
    self.quicknum = 0
    if (self.refreshperiod < 0):
        self.ui.warn(('autorefresh    for    %s    is    negative,    fixing    it    to    0.' % name))
        self.refreshperiod = 0.0
    if (self.refreshperiod == 0.0):
        self.refreshperiod = None
    self.remoterepos = None
    self.localrepos = None
    self.statusrepos = None
