Mail Doesn't Refresh - Temp Fix Here
Problem reported by Nicolas Le Merle - August 22, 2017 at 3:59 AM
Submitted
Hey Guys,
 
As I have loads of customers screaming that they are not receiving mail (because in v16 there is a bug where mail is not being refreshed) I have written some JavaScript to relieve some frustration until SmarterTools can come up with a more permanent solution for this.
 
The below code simply replicates a user clicking the deleted items folder and then back to the folder they were in at the time. This naturally reloads all emails in the inbox folder. This function is in a 2 minute loop (120000 milliseconds) - feel free to amend that time as you wish.
 
Simply add the below code right at the end of 'site.js' which is located in C:\Program Files (x86)\SmarterTools\SmarterMail\MRS\Interface\output
setInterval(function(){
	if(document.URL.indexOf("interface/root#/email") >= 0){ 
		console.log('Inbox Refreshed');
		var active = $('ul.nav-list li.active a');
		$('ul.nav-list li:nth-of-type(2) a').trigger('click');
		setTimeout(function() {
			$(active).trigger('click')
		}, 250);}
}, 120000); //set refresh time here in milliseconds
 
Feel free to comment any improvements or if you notice an issues with this approach.
 
Cheers,
Nic

1 Reply

Reply to Thread
0
Matt Petty Replied
Employee Post
We also deployed a potential fix that was affecting someone here at the office. It related to cookies that were being used, which we clear local domain cookies now, since we don't use them anymore. Not sure how many people this would affect but it is another potential fix, so you might wanna try re-evaluating the problem after upgrade.
Matt Petty
Software Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com

Reply to Thread