Omkar008 commited on
Commit
fdd0913
1 Parent(s): c0bad28

Update get_gmail_data.py

Browse files
Files changed (1) hide show
  1. get_gmail_data.py +1 -1
get_gmail_data.py CHANGED
@@ -156,7 +156,7 @@ class GmailDataExtractor:
156
  #Extracting the domain name from the senders email
157
  for fromdata in payload:
158
  if fromdata['name'] == 'From':
159
- company_from_gmail = extract_domain_from_email(fromdata['value'])
160
  break
161
 
162
  for part in parts:
 
156
  #Extracting the domain name from the senders email
157
  for fromdata in payload:
158
  if fromdata['name'] == 'From':
159
+ company_from_gmail = self.extract_domain_from_email(fromdata['value'])
160
  break
161
 
162
  for part in parts: