def getrouteaddr(self):
        """Parse a route address (Return-path value).

        This method just skips all the route stuff and returns the addrspec.
        """
        if self.field[self.pos] != '<':
            return

        expectroute = 0
        self.pos += 1
        self.gotonext()
        adlist = ""
        while self.pos < len(self.field):
            if expectroute:
                self.getdomain()
                expectroute = 0
            elif self.field[self.pos] == '>':
                self.pos += 1
                break
            elif self.field[self.pos] == '@':
                self.pos += 1
                expectroute = 1
            elif self.field[self.pos] == ':':
                self.pos += 1
            else:
                adlist = self.getaddrspec()
                self.pos += 1
                break
            self.gotonext()

        return adlist
def getrouteaddr(self):
        """Parse a route address (Return-path value).

        This method just skips all the route stuff and returns the addrspec.
        """
        if self.field[self.pos] != '<':
            return

        expectroute = 0
        self.pos += 1
        self.gotonext()
        adlist = ""
        while self.pos < len(self.field):
            if expectroute:
                self.getdomain()
                expectroute = 0
            elif self.field[self.pos] == '>':
                self.pos += 1
                break
            elif self.field[self.pos] == '@':
                self.pos += 1
                expectroute = 1
            elif self.field[self.pos] == ':':
                self.pos += 1
            else:
                adlist = self.getaddrspec()
                self.pos += 1
                break
            self.gotonext()

        return adlist
def getrouteaddr ( self ) : if self . field [ self . pos ] != '<' : return expectroute = 0 self . pos += 1 self . gotonext ( ) adlist = "" while self . pos < len ( self . field ) : if expectroute : self . getdomain ( ) expectroute = 0 elif self . field [ self . pos ] == '>' : self . pos += 1 break elif self . field [ self . pos ] == '@' : self . pos += 1 expectroute = 1 elif self . field [ self . pos ] == ':' : self . pos += 1 else : adlist = self . getaddrspec ( ) self . pos += 1 break self . gotonext ( ) return adlist
Parse a route address (Return-path value).

        This method just skips all the route stuff and returns the addrspec.
Parse a route address ( Return - path value ) .