W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2009

2006/unicorn/src/org/w3c/unicorn/output MailOutputModule.java,1.9,1.10

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 28 Sep 2009 16:41:20 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MsJHs-0008JE-7k@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/output
In directory hutz:/tmp/cvs-serv31926/src/org/w3c/unicorn/output

Modified Files:
	MailOutputModule.java 
Log Message:
added TODO

Index: MailOutputModule.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/output/MailOutputModule.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- MailOutputModule.java	24 Sep 2009 17:42:22 -0000	1.9
+++ MailOutputModule.java	28 Sep 2009 16:41:18 -0000	1.10
@@ -47,6 +47,8 @@
 		
 		if (mapOfSpecificParameters.get("format") != null)
 			format = mapOfSpecificParameters.get("format");
+		if (mapOfSpecificParameters.get("mimetype") != null)
+			mimeType = mapOfSpecificParameters.get("mimetype");
 		
 		mailOutputFormater = OutputFactory.createOutputFormater(format, lang, mimeType);
 	}
@@ -70,6 +72,10 @@
 	@SuppressWarnings("unchecked")
 	public void produceOutput(Map<String, Object> mapOfStringObject, final Writer aWriter) {
 		
+		
+		// TODO http://java.sun.com/developer/EJTechTips/2004/tt0625.html#1 for multipart messages
+		
+		
 		if (recipient == null)
 			return;
 		
@@ -96,7 +102,7 @@
 			
 			// Setting the Subject and Content Type
 			UnicornCall uniCall = (UnicornCall) mapOfStringObject.get("unicorncall");
-			boolean passed = ((UnicornCall) mapOfStringObject.get("unicorncall")).isPassed();
+			boolean passed = uniCall.isPassed();
 			
 			String subject = "[Unicorn] ";
 			if (passed)
Received on Monday, 28 September 2009 16:41:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:14 GMT