'Initialize Demo mailbox.'

def __init__(self, hass, name):

    super().__init__(hass, name)
    self._messages = {}
    txt = 'Lorem    ipsum    dolor    sit    amet,    consectetur    adipiscing    elit.    '
    for idx in range(0, 10):
        msgtime = int((dt.as_timestamp(dt.utcnow()) - ((3600 * 24) * (10 - idx))))
        msgtxt = 'Message    {}.    {}'.format((idx + 1), (txt * (1 + (idx * (idx % 2)))))
        msgsha = sha1(msgtxt.encode('utf-8')).hexdigest()
        msg = {'info': {'origtime': msgtime, 'callerid': 'John    Doe    <212-555-1212>', 'duration': '10'}, 'text': msgtxt, 'sha': msgsha}
        self._messages[msgsha] = msg
