'Remove RFC-2821 quotes from address.'

def dequote(self, addr):

    res = []
    if (not isinstance(addr, bytes)):
        addr = str(addr).encode('ascii')
    atl = filter(None, self.tstring.split(addr))
    for t in atl:
        if ((t[0] == '"') and (t[(-1)] == '"')):
            res.append(t[1:(-1)])
        elif ('\\' in t):
            res.append(self.dequotebs.sub('\\1', t))
        else:
            res.append(t)
    return ''.join(res)
