19
19
import dns .resolver
20
20
import dns .exception
21
21
22
- from pyfaup .faup import Faup
22
+ # from pyfaup.faup import Faup
23
23
24
24
sys .path .append (os .environ ['AIL_BIN' ])
25
25
##################################
@@ -43,7 +43,7 @@ def __init__(self, queue=True):
43
43
44
44
self .dns_server = config_loader .get_config_str ('Mail' , 'dns' )
45
45
46
- self .faup = Faup ()
46
+ # self.faup = Faup()
47
47
48
48
# Numbers of Mails needed to Tags
49
49
self .mail_threshold = 10
@@ -153,7 +153,7 @@ def compute(self, message):
153
153
154
154
valid_mx = self .check_mx_record (mxdomains_email .keys ())
155
155
print (f'valid_mx: { valid_mx } ' )
156
- mx_tlds = {}
156
+ # mx_tlds = {}
157
157
num_valid_email = 0
158
158
for domain_mx in valid_mx :
159
159
nb_mails = len (mxdomains_email [domain_mx ])
@@ -164,13 +164,13 @@ def compute(self, message):
164
164
# self.add_message_to_queue(msg, 'ModuleStats')
165
165
166
166
# Create country stats
167
- self .faup .decode (domain_mx )
168
- tld = self .faup .get ()['tld' ]
169
- try :
170
- tld = tld .decode ()
171
- except :
172
- pass
173
- mx_tlds [tld ] = mx_tlds .get (tld , 0 ) + nb_mails
167
+ # self.faup.decode(domain_mx)
168
+ # tld = self.faup.get()['tld']
169
+ # try:
170
+ # tld = tld.decode()
171
+ # except:
172
+ # pass
173
+ # mx_tlds[tld] = mx_tlds.get(tld, 0) + nb_mails
174
174
# for tld in mx_tlds:
175
175
# Statistics.add_module_tld_stats_by_date('mail', item_date, tld, mx_tlds[tld])
176
176
0 commit comments