I have a script that I have adapted to suit my needs.function autoReply() {  var interval = 5;    //  if the script runs every 5 minutes; change otherwise  var wkend = [6,0];   // 1=Mo, 2=Tu, 3=We, 4=Th, 5=Fr, 6=Sa, 0=Su  var wkendMessage = Hi,\n\nThank you for contacting us.\n\nThe office is now closed.\n\nAll emails will be attended to when the office re-opens at 9:00am on Monday morning.;  var wkdayamMessage = Hi,\n\nThank you for contacting us.\n\nThe office is now closed.\n\nAll emails will be attended to when the office re-opens at 9:00am.;  var wkdaypmMessage = Hi,\n\nThank you for contacting us.\n\nThe office is now closed.\n\nAll emails will be attended to when the office re-opens in the morning.;  var date = new Date();  var day = date.getDay();  var hour = date.getHours();  if (wkend.indexOf(day) > -1 || (day == 5 && hour >= 17)) {    var timeFrom = Math.floor(date.valueOf()/1000) - 60 * interval;    var threads = GmailApp.search('is:inbox -label:social-media after:' + timeFrom);    for (var i = 0; i < threads.length; i++) {      threads[i].reply(wkendMessage);    }  }  else if (hour < 9) {    var timeFrom = Math.floor(date.valueOf()/1000) - 60 * interval;    var threads = GmailApp.search('is:inbox -label:social-media after:' + timeFrom);    for (var i = 0; i < threads.length; i++) {      threads[i].reply(wkdayamMessage);    }  }  else if (hour >= 17) {    var timeFrom = Math.floor(date.valueOf()/1000) - 60 * interval;    var threads = GmailApp.search('is:inbox -label:social-media after:' + timeFrom);    for (var i = 0; i < threads.length; i++) {      threads[i].reply(wkdaypmMessage);    }  }}(Here is where I found the original script Any way to send Gmail auto-response at certain times every week?)I added a Gmail label filter to the script because the script would get stuck in a loop with emails from certain social media companies that have a noreply return email address.I thought that this would resolve the issue, but apparently not.Can anybody help me work out what I have done wrong here?
How to stop Google Apps Script responding to noreply
gmail;google apps;google apps script;automation