Hello Everyone,
Just an update I'm not seeing an increase in latency when compared to 8125 it also seems like having IDLE turned off makes the IMAP response about 1 MS slower from my testing.
Please test your server with this python script. This script gets the avg execution time for 100 searches on a given host and account. You will just need to install python 3 and edit the placeholder info.
import imaplib
import pprint
import timeit
imap_host = 'mail.example.com'
imap_user = 'email@email.com'
imap_pass = 'password for email'
# connect to host using SSL
imap = imaplib.IMAP4_SSL(imap_host)
imap.login(imap_user, imap_pass)
def imapconnection():
imap.select('Inbox')
tmp, data = imap.search(None,'FROM' , 'emailtosearchfor@gmail.com')
for num in data[0].split():
tmp, data = imap.fetch(num, '(RFC822)')
#print('Message: {0}\n'.format(num))
#pprint.pprint(data[0][1])
break
#save the execution time to a list
execution_time_list = []
i = 0
while i < 100:
execution_time = timeit.timeit(imapconnection, number=1)
execution_time_list.append(execution_time)
i += 1
#print the average execution time from the list
print(sum(execution_time_list)/len(execution_time_list))
imap.close()Looking forward to hearing your results. So far this looks like it might be an issue with missiveapp.com's IMAP IDLE compatibility.
Kind Regards,
Software Developer
SmarterTools Inc.