Example #1
0
 def reply_to_email(self):
     reply_to = self.reply_to
     email = reply_to
     if reply_to:
         gre = Re()
         gre.match(r'(?:.*) <(.*)>', reply_to)
         if gre.last_match:
             email = gre.last_match.group(1)
         else:
             pass
     return email
Example #2
0
 def sender_email(self):
     sender = self.sender
     email = sender
     if sender:
         gre = Re()
         gre.match(r'(?:.*) <(.*)>', sender)
         if gre.last_match:
             email = gre.last_match.group(1)
         else:
             pass
     return email
Example #3
0
 def reply_to_email(self):
     reply_to = self.reply_to
     email = reply_to
     if reply_to:
         gre = Re()
         gre.match(r'(?:.*) <(.*)>', reply_to)
         if gre.last_match:
             email = gre.last_match.group(1)
         else:
             pass
     return email
Example #4
0
 def sender_email(self):
     sender = self.sender
     email = sender
     if sender:
         gre = Re()
         gre.match(r'(?:.*) <(.*)>', sender)
         if gre.last_match:
             email = gre.last_match.group(1)
         else:
             pass
     return email
Example #5
0
 def reply_to_name(self):
     reply_to = self.reply_to
     name = reply_to
     if reply_to:
         gre = Re()
         gre.match(r'(.*) <(.*)>', reply_to)
         if gre.last_match:
             name = gre.last_match.group(1)
             # strip off quotes around reply_to name
             gre.match(r'"(.*)"', name)
             if gre.last_match:
                 name = gre.last_match.group(1)
         else:
             pass
     return name
Example #6
0
 def sender_name(self):
     sender = self.sender
     name = sender
     if sender:
         gre = Re()
         gre.match(r'(.*) <(.*)>', sender)
         if gre.last_match:
             name = gre.last_match.group(1)
             # strip off quotes around sender name
             gre.match(r'"(.*)"', name)
             if gre.last_match:
                 name = gre.last_match.group(1)
         else:
             pass
     return name
Example #7
0
 def reply_to_name(self):
     reply_to = self.reply_to
     name = reply_to
     if reply_to:
         gre = Re()
         gre.match(r'(.*) <(.*)>', reply_to)
         if gre.last_match:
             name = gre.last_match.group(1)
             # strip off quotes around reply_to name
             gre.match(r'"(.*)"', name)
             if gre.last_match:
                 name = gre.last_match.group(1)
         else:
             pass
     return name
Example #8
0
 def sender_name(self):
     sender = self.sender
     name = sender
     if sender:
         gre = Re()
         gre.match(r'(.*) <(.*)>', sender)
         if gre.last_match:
             name = gre.last_match.group(1)
             # strip off quotes around sender name
             gre.match(r'"(.*)"', name)
             if gre.last_match:
                 name = gre.last_match.group(1)
         else:
             pass
     return name