'This function should digest the contents of one line at a time, updating
object\'s state variables. Takes a single argument, the line to be parsed.'

def parse_line(self, line):

    try:
        regMatch = self.reg.match(line)
        if regMatch:
            linebits = regMatch.groupdict()
            if (linebits['status'] == 'sent'):
                self.totalDelay += float(linebits['send_delay'])
                self.numSent += 1
            elif (linebits['status'] == 'deferred'):
                self.numDeferred += 1
            elif (linebits['status'] == 'bounced'):
                self.numBounced += 1
    except Exception as e:
        raise LogsterParsingException(('regmatch    or    contents    failed    with    %s' % e))
