From 797a719f15a894ee6b1a3d28df0e184d37e69de2 Mon Sep 17 00:00:00 2001 From: grob Date: Thu, 20 Sep 2007 11:14:10 +0000 Subject: [PATCH] * fixed bug 539 * added private getter for internal buffer and mime multipart object to ease testing --- helma/Mail.js | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/helma/Mail.js b/helma/Mail.js index 6ccc37e6..ca82cb39 100644 --- a/helma/Mail.js +++ b/helma/Mail.js @@ -142,13 +142,33 @@ helma.Mail = function(host, port) { return; }; + /** + * Returns the text buffer of this mail message + * @returns The text buffer of this mail message + * @type java.lang.StringBuffer + * @private + */ + this.getBuffer = function() { + return buffer; + }; + + /** + * Returns the mime multipart object of this mail message + * @returns The mime multipart object of this mail message + * @type javax.mail.internet.MimeMultipart + * @private + */ + this.getMultipart = function() { + return multipart; + }; + /** * Sets username and password to use for SMTP authentication. * @param {String} uname The username to use * @param {String} pwd The password to use */ this.setAuthentication = function(uname, pwd) { - if (username && password) { + if (uname && pwd) { username = uname; password = pwd; // enable smtp authentication