rem: while (app.data.mailQueue.length) { var mail = app.data.mailQueue.pop(); mail.send(); if (mail.status > 0) { app.debug("Mail transfer status: " + mail.status);  
add: if (app.data.mailQueue.length > 0) { app.debug("flushing mailQueue, sending " + app.data.mailQueue.length + " eMail(s) ..."); while (app.data.mailQueue.length) { var mail = app.data.mailQueue.pop(); mail.send(); if (mail.status > 0) app.debug("Error while sending eMail, status = " + mail.status); 
context: function flushMailQueue() {   while (app.data.mailQueue.length) {      var mail = app.data.mailQueue.pop();      mail.send();      if (mail.status > 0) {         app.debug("Mail transfer status: " + mail.status);         //throw new MailException("mailSend");      }   }   return;}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/772c53d17fbcbff217eb27d1fd501f4a3d8c987c/objectFunctions.js/buggy/code/Global/objectFunctions.js