rem: } 
add: }; 
context:     this.addPart = function(obj, filename, contentType) {        try {            if (obj == null) {                throw new IOException(                    errStr + ".addPart: method called with wrong number of arguments."                );            }            if (multipart == null) {                multipart = new MimeMultipart(multipartType);            }            if (obj instanceof Wrapper) {                obj = obj.unwrap();            }            var part;            if (obj instanceof BodyPart) {                // we already got a body part, no need to convert it                part = obj;            } else {                part = new MimeBodyPart();                if (typeof obj == "string") {                    part.setContent(obj.toString(), contentType || "text/plain");                } else if (obj instanceof File || obj instanceof helma.File) {                    var source = new FileDataSource(obj.getPath());                    part.setDataHandler(new DataHandler(source));                } else if (obj instanceof MimePart) {                    var source = new MimePartDataSource(obj);                    part.setDataHandler(new DataHandler(source));                }            }            if (filename != null) {                try {                    part.setFileName(filename.toString());                } catch (x) {}            } else if (obj instanceof File || obj instanceof helma.File) {                try {                    part.setFileName(obj.getName());                } catch (x) {}            }            multipart.addBodyPart(part);        } catch (mx) {            res.debug(errStr + ".addPart(): " + mx);            setStatus(MIMEPART);        }        return;    }
meta: 2504	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2504/4b3b53775dc5a11cee5a0f14412257a6f9cc5e0e/Mail.js/clean/helma/Mail.js