rem: message.setSentDate(new Date()); Transport.send(message); } catch (mx) { res.debug(errStr + ".send(): " + mx); setStatus(SEND); 
add: } else {  this.writeToFile(getProperty("smtp.dir")); 
context:     this.send = function() {        if (this.status > OK) {            res.debug(errStr + ".send(): Status is " + this.status);            return;        }        try {            if (buffer != null) {                if (multipart != null) {                    var part = new MimeBodyPart();                    part.setContent(buffer.toString(), "text/plain");                    multipart.addBodyPart(part, 0);                    message.setContent(multipart);                } else {                    message.setText(buffer.toString());                }            } else if (multipart != null) {                message.setContent(multipart);            } else {                message.setText("");            }            message.setSentDate(new Date());            Transport.send(message);        } catch (mx) {            res.debug(errStr + ".send(): " + mx);            setStatus(SEND);        }        return;    };
meta: 2504	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2504/4b3b53775dc5a11cee5a0f14412257a6f9cc5e0e/Mail.js/clean/helma/Mail.js