You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ki...@apache.org on 2014/02/19 21:31:46 UTC
svn commit: r898569 [3/7] - in
/websites/production/commons/content/proper/commons-email: ./ apidocs/
apidocs/org/apache/commons/mail/ apidocs/org/apache/commons/mail/class-use/
apidocs/org/apache/commons/mail/resolver/ apidocs/org/apache/commons/mail/...
Modified: websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/ImageHtmlEmail.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/ImageHtmlEmail.html (original)
+++ websites/production/commons/content/proper/commons-email/apidocs/src-html/org/apache/commons/mail/ImageHtmlEmail.html Wed Feb 19 20:31:43 2014
@@ -32,173 +32,175 @@
<span class="sourceLineNo">024</span>import java.util.regex.Pattern;<a name="line.24"></a>
<span class="sourceLineNo">025</span><a name="line.25"></a>
<span class="sourceLineNo">026</span>/**<a name="line.26"></a>
-<span class="sourceLineNo">027</span> * Small wrapper class on top of HtmlEmail which encapsulates the required logic<a name="line.27"></a>
+<span class="sourceLineNo">027</span> * <p>Small wrapper class on top of HtmlEmail which encapsulates the required logic<a name="line.27"></a>
<span class="sourceLineNo">028</span> * to retrieve images that are contained in "&lt;img src=../&gt;" elements in the HTML<a name="line.28"></a>
<span class="sourceLineNo">029</span> * code. This is done by replacing all img-src-elements with "cid:"-entries and<a name="line.29"></a>
<span class="sourceLineNo">030</span> * embedding images in the email.<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * </br><a name="line.31"></a>
-<span class="sourceLineNo">032</span> * For local files the class tries to either load them via an absolute path or -<a name="line.32"></a>
-<span class="sourceLineNo">033</span> * if available - use a relative path starting from a base directory. For files<a name="line.33"></a>
-<span class="sourceLineNo">034</span> * that are not found locally, the implementation tries to download<a name="line.34"></a>
-<span class="sourceLineNo">035</span> * the element and link it in.<a name="line.35"></a>
-<span class="sourceLineNo">036</span> * </br><a name="line.36"></a>
-<span class="sourceLineNo">037</span> * The image loading is done by an instance of <code>DataSourceResolver</code><a name="line.37"></a>
-<span class="sourceLineNo">038</span> * which has to be provided by the caller.<a name="line.38"></a>
-<span class="sourceLineNo">039</span> * </br><a name="line.39"></a>
-<span class="sourceLineNo">040</span> *<a name="line.40"></a>
-<span class="sourceLineNo">041</span> * @since 1.3<a name="line.41"></a>
-<span class="sourceLineNo">042</span> * @version $Id: ImageHtmlEmail.java 1498625 2013-07-01 19:07:19Z tn $<a name="line.42"></a>
-<span class="sourceLineNo">043</span> */<a name="line.43"></a>
-<span class="sourceLineNo">044</span>public class ImageHtmlEmail extends HtmlEmail<a name="line.44"></a>
-<span class="sourceLineNo">045</span>{<a name="line.45"></a>
-<span class="sourceLineNo">046</span> // Regular Expression to find all <IMG SRC="..."> entries in an HTML<a name="line.46"></a>
-<span class="sourceLineNo">047</span> // document.It needs to cater for various things, like more whitespaces<a name="line.47"></a>
-<span class="sourceLineNo">048</span> // including newlines on any place, HTML is not case sensitive and there<a name="line.48"></a>
-<span class="sourceLineNo">049</span> // can be arbitrary text between "IMG" and "SRC" like IDs and other things.<a name="line.49"></a>
-<span class="sourceLineNo">050</span><a name="line.50"></a>
-<span class="sourceLineNo">051</span> /** regexp for extracting <img> tags */<a name="line.51"></a>
-<span class="sourceLineNo">052</span> public static final String REGEX_IMG_SRC =<a name="line.52"></a>
-<span class="sourceLineNo">053</span> "(<[Ii][Mm][Gg]\\s*[^>]*?\\s+[Ss][Rr][Cc]\\s*=\\s*[\"'])([^\"']+?)([\"'])";<a name="line.53"></a>
-<span class="sourceLineNo">054</span><a name="line.54"></a>
-<span class="sourceLineNo">055</span> /** regexp for extracting <script> tags */<a name="line.55"></a>
-<span class="sourceLineNo">056</span> public static final String REGEX_SCRIPT_SRC =<a name="line.56"></a>
-<span class="sourceLineNo">057</span> "(<[Ss][Cc][Rr][Ii][Pp][Tt]\\s*.*?\\s+[Ss][Rr][Cc]\\s*=\\s*[\"'])([^\"']+?)([\"'])";<a name="line.57"></a>
-<span class="sourceLineNo">058</span><a name="line.58"></a>
-<span class="sourceLineNo">059</span> // this pattern looks for the HTML image tag which indicates embedded images,<a name="line.59"></a>
-<span class="sourceLineNo">060</span> // the grouping is necessary to allow to replace the element with the CID<a name="line.60"></a>
-<span class="sourceLineNo">061</span><a name="line.61"></a>
-<span class="sourceLineNo">062</span> /** pattern for extracting <img> tags */<a name="line.62"></a>
-<span class="sourceLineNo">063</span> private static final Pattern IMG_PATTERN = Pattern.compile(REGEX_IMG_SRC);<a name="line.63"></a>
-<span class="sourceLineNo">064</span><a name="line.64"></a>
-<span class="sourceLineNo">065</span> /** pattern for extracting <script> tags */<a name="line.65"></a>
-<span class="sourceLineNo">066</span> private static final Pattern SCRIPT_PATTERN = Pattern.compile(REGEX_SCRIPT_SRC);<a name="line.66"></a>
-<span class="sourceLineNo">067</span><a name="line.67"></a>
-<span class="sourceLineNo">068</span> /** resolve the images and script resources to a DataSource */<a name="line.68"></a>
-<span class="sourceLineNo">069</span> private DataSourceResolver dataSourceResolver;<a name="line.69"></a>
-<span class="sourceLineNo">070</span><a name="line.70"></a>
-<span class="sourceLineNo">071</span> /**<a name="line.71"></a>
-<span class="sourceLineNo">072</span> * Get the data source resolver.<a name="line.72"></a>
-<span class="sourceLineNo">073</span> *<a name="line.73"></a>
-<span class="sourceLineNo">074</span> * @return the resolver<a name="line.74"></a>
-<span class="sourceLineNo">075</span> */<a name="line.75"></a>
-<span class="sourceLineNo">076</span> public DataSourceResolver getDataSourceResolver()<a name="line.76"></a>
-<span class="sourceLineNo">077</span> {<a name="line.77"></a>
-<span class="sourceLineNo">078</span> return dataSourceResolver;<a name="line.78"></a>
-<span class="sourceLineNo">079</span> }<a name="line.79"></a>
-<span class="sourceLineNo">080</span><a name="line.80"></a>
-<span class="sourceLineNo">081</span> /**<a name="line.81"></a>
-<span class="sourceLineNo">082</span> * Set the data source resolver.<a name="line.82"></a>
-<span class="sourceLineNo">083</span> *<a name="line.83"></a>
-<span class="sourceLineNo">084</span> * @param dataSourceResolver the resolver<a name="line.84"></a>
-<span class="sourceLineNo">085</span> */<a name="line.85"></a>
-<span class="sourceLineNo">086</span> public void setDataSourceResolver(DataSourceResolver dataSourceResolver)<a name="line.86"></a>
-<span class="sourceLineNo">087</span> {<a name="line.87"></a>
-<span class="sourceLineNo">088</span> this.dataSourceResolver = dataSourceResolver;<a name="line.88"></a>
-<span class="sourceLineNo">089</span> }<a name="line.89"></a>
-<span class="sourceLineNo">090</span><a name="line.90"></a>
-<span class="sourceLineNo">091</span> /**<a name="line.91"></a>
-<span class="sourceLineNo">092</span> * Does the work of actually building the MimeMessage.<a name="line.92"></a>
-<span class="sourceLineNo">093</span> *<a name="line.93"></a>
-<span class="sourceLineNo">094</span> * @see org.apache.commons.mail.HtmlEmail#buildMimeMessage()<a name="line.94"></a>
-<span class="sourceLineNo">095</span> * @throws EmailException building the MimeMessage failed<a name="line.95"></a>
-<span class="sourceLineNo">096</span> */<a name="line.96"></a>
-<span class="sourceLineNo">097</span> @Override<a name="line.97"></a>
-<span class="sourceLineNo">098</span> public void buildMimeMessage() throws EmailException<a name="line.98"></a>
-<span class="sourceLineNo">099</span> {<a name="line.99"></a>
-<span class="sourceLineNo">100</span> try<a name="line.100"></a>
-<span class="sourceLineNo">101</span> {<a name="line.101"></a>
-<span class="sourceLineNo">102</span> // embed all the matching image and script resources within the email<a name="line.102"></a>
-<span class="sourceLineNo">103</span> String temp = replacePattern(super.html, IMG_PATTERN);<a name="line.103"></a>
-<span class="sourceLineNo">104</span> temp = replacePattern(temp, SCRIPT_PATTERN);<a name="line.104"></a>
-<span class="sourceLineNo">105</span> setHtmlMsg(temp);<a name="line.105"></a>
-<span class="sourceLineNo">106</span> super.buildMimeMessage();<a name="line.106"></a>
-<span class="sourceLineNo">107</span> }<a name="line.107"></a>
-<span class="sourceLineNo">108</span> catch (IOException e)<a name="line.108"></a>
-<span class="sourceLineNo">109</span> {<a name="line.109"></a>
-<span class="sourceLineNo">110</span> throw new EmailException("Building the MimeMessage failed", e);<a name="line.110"></a>
-<span class="sourceLineNo">111</span> }<a name="line.111"></a>
-<span class="sourceLineNo">112</span> }<a name="line.112"></a>
-<span class="sourceLineNo">113</span><a name="line.113"></a>
-<span class="sourceLineNo">114</span> /**<a name="line.114"></a>
-<span class="sourceLineNo">115</span> * Replace the regexp matching resource locations with "cid:..." references.<a name="line.115"></a>
-<span class="sourceLineNo">116</span> *<a name="line.116"></a>
-<span class="sourceLineNo">117</span> * @param htmlMessage the HTML message to analyze<a name="line.117"></a>
-<span class="sourceLineNo">118</span> * @param pattern the regular expression to find resources<a name="line.118"></a>
-<span class="sourceLineNo">119</span> * @return the HTML message containing "cid" references<a name="line.119"></a>
-<span class="sourceLineNo">120</span> * @throws EmailException creating the email failed<a name="line.120"></a>
-<span class="sourceLineNo">121</span> * @throws IOException resolving the resources failed<a name="line.121"></a>
-<span class="sourceLineNo">122</span> */<a name="line.122"></a>
-<span class="sourceLineNo">123</span> private String replacePattern(final String htmlMessage, final Pattern pattern)<a name="line.123"></a>
-<span class="sourceLineNo">124</span> throws EmailException, IOException<a name="line.124"></a>
-<span class="sourceLineNo">125</span> {<a name="line.125"></a>
-<span class="sourceLineNo">126</span> DataSource dataSource;<a name="line.126"></a>
-<span class="sourceLineNo">127</span> StringBuffer stringBuffer = new StringBuffer();<a name="line.127"></a>
-<span class="sourceLineNo">128</span><a name="line.128"></a>
-<span class="sourceLineNo">129</span> // maps "cid" --> name<a name="line.129"></a>
-<span class="sourceLineNo">130</span> Map<String, String> cidCache = new HashMap<String, String>();<a name="line.130"></a>
-<span class="sourceLineNo">131</span><a name="line.131"></a>
-<span class="sourceLineNo">132</span> // maps "name" --> dataSource<a name="line.132"></a>
-<span class="sourceLineNo">133</span> Map<String, DataSource> dataSourceCache = new HashMap<String, DataSource>();<a name="line.133"></a>
-<span class="sourceLineNo">134</span><a name="line.134"></a>
-<span class="sourceLineNo">135</span> // in the String, replace all "img src" with a CID and embed the related<a name="line.135"></a>
-<span class="sourceLineNo">136</span> // image file if we find it.<a name="line.136"></a>
-<span class="sourceLineNo">137</span> Matcher matcher = pattern.matcher(htmlMessage);<a name="line.137"></a>
-<span class="sourceLineNo">138</span><a name="line.138"></a>
-<span class="sourceLineNo">139</span> // the matcher returns all instances one by one<a name="line.139"></a>
-<span class="sourceLineNo">140</span> while (matcher.find())<a name="line.140"></a>
-<span class="sourceLineNo">141</span> {<a name="line.141"></a>
-<span class="sourceLineNo">142</span> // in the RegEx we have the <src> element as second "group"<a name="line.142"></a>
-<span class="sourceLineNo">143</span> String resourceLocation = matcher.group(2);<a name="line.143"></a>
-<span class="sourceLineNo">144</span><a name="line.144"></a>
-<span class="sourceLineNo">145</span> // avoid loading the same data source more than once<a name="line.145"></a>
-<span class="sourceLineNo">146</span> if (dataSourceCache.get(resourceLocation) == null)<a name="line.146"></a>
-<span class="sourceLineNo">147</span> {<a name="line.147"></a>
-<span class="sourceLineNo">148</span> // in lenient mode we might get a 'null' data source if the resource was not found<a name="line.148"></a>
-<span class="sourceLineNo">149</span> dataSource = getDataSourceResolver().resolve(resourceLocation);<a name="line.149"></a>
-<span class="sourceLineNo">150</span><a name="line.150"></a>
-<span class="sourceLineNo">151</span> if (dataSource != null)<a name="line.151"></a>
-<span class="sourceLineNo">152</span> {<a name="line.152"></a>
-<span class="sourceLineNo">153</span> dataSourceCache.put(resourceLocation, dataSource);<a name="line.153"></a>
-<span class="sourceLineNo">154</span> }<a name="line.154"></a>
-<span class="sourceLineNo">155</span> }<a name="line.155"></a>
-<span class="sourceLineNo">156</span> else<a name="line.156"></a>
-<span class="sourceLineNo">157</span> {<a name="line.157"></a>
-<span class="sourceLineNo">158</span> dataSource = dataSourceCache.get(resourceLocation);<a name="line.158"></a>
-<span class="sourceLineNo">159</span> }<a name="line.159"></a>
-<span class="sourceLineNo">160</span><a name="line.160"></a>
-<span class="sourceLineNo">161</span> if (dataSource != null)<a name="line.161"></a>
-<span class="sourceLineNo">162</span> {<a name="line.162"></a>
-<span class="sourceLineNo">163</span> String name = dataSource.getName();<a name="line.163"></a>
-<span class="sourceLineNo">164</span> if (EmailUtils.isEmpty(name))<a name="line.164"></a>
-<span class="sourceLineNo">165</span> {<a name="line.165"></a>
-<span class="sourceLineNo">166</span> name = resourceLocation;<a name="line.166"></a>
-<span class="sourceLineNo">167</span> }<a name="line.167"></a>
-<span class="sourceLineNo">168</span><a name="line.168"></a>
-<span class="sourceLineNo">169</span> String cid = cidCache.get(name);<a name="line.169"></a>
+<span class="sourceLineNo">031</span> * </p><a name="line.31"></a>
+<span class="sourceLineNo">032</span> * <p><a name="line.32"></a>
+<span class="sourceLineNo">033</span> * For local files the class tries to either load them via an absolute path or -<a name="line.33"></a>
+<span class="sourceLineNo">034</span> * if available - use a relative path starting from a base directory. For files<a name="line.34"></a>
+<span class="sourceLineNo">035</span> * that are not found locally, the implementation tries to download<a name="line.35"></a>
+<span class="sourceLineNo">036</span> * the element and link it in.<a name="line.36"></a>
+<span class="sourceLineNo">037</span> * </p><a name="line.37"></a>
+<span class="sourceLineNo">038</span> * <p><a name="line.38"></a>
+<span class="sourceLineNo">039</span> * The image loading is done by an instance of <code>DataSourceResolver</code><a name="line.39"></a>
+<span class="sourceLineNo">040</span> * which has to be provided by the caller.<a name="line.40"></a>
+<span class="sourceLineNo">041</span> * </p><a name="line.41"></a>
+<span class="sourceLineNo">042</span> *<a name="line.42"></a>
+<span class="sourceLineNo">043</span> * @since 1.3<a name="line.43"></a>
+<span class="sourceLineNo">044</span> * @version $Id: ImageHtmlEmail.java 1563555 2014-02-02 02:51:10Z ggregory $<a name="line.44"></a>
+<span class="sourceLineNo">045</span> */<a name="line.45"></a>
+<span class="sourceLineNo">046</span>public class ImageHtmlEmail extends HtmlEmail<a name="line.46"></a>
+<span class="sourceLineNo">047</span>{<a name="line.47"></a>
+<span class="sourceLineNo">048</span> // Regular Expression to find all <IMG SRC="..."> entries in an HTML<a name="line.48"></a>
+<span class="sourceLineNo">049</span> // document.It needs to cater for various things, like more whitespaces<a name="line.49"></a>
+<span class="sourceLineNo">050</span> // including newlines on any place, HTML is not case sensitive and there<a name="line.50"></a>
+<span class="sourceLineNo">051</span> // can be arbitrary text between "IMG" and "SRC" like IDs and other things.<a name="line.51"></a>
+<span class="sourceLineNo">052</span><a name="line.52"></a>
+<span class="sourceLineNo">053</span> /** Regexp for extracting {@code <img>} tags */<a name="line.53"></a>
+<span class="sourceLineNo">054</span> public static final String REGEX_IMG_SRC =<a name="line.54"></a>
+<span class="sourceLineNo">055</span> "(<[Ii][Mm][Gg]\\s*[^>]*?\\s+[Ss][Rr][Cc]\\s*=\\s*[\"'])([^\"']+?)([\"'])";<a name="line.55"></a>
+<span class="sourceLineNo">056</span><a name="line.56"></a>
+<span class="sourceLineNo">057</span> /** regexp for extracting {@code <script>} tags */<a name="line.57"></a>
+<span class="sourceLineNo">058</span> public static final String REGEX_SCRIPT_SRC =<a name="line.58"></a>
+<span class="sourceLineNo">059</span> "(<[Ss][Cc][Rr][Ii][Pp][Tt]\\s*.*?\\s+[Ss][Rr][Cc]\\s*=\\s*[\"'])([^\"']+?)([\"'])";<a name="line.59"></a>
+<span class="sourceLineNo">060</span><a name="line.60"></a>
+<span class="sourceLineNo">061</span> // this pattern looks for the HTML image tag which indicates embedded images,<a name="line.61"></a>
+<span class="sourceLineNo">062</span> // the grouping is necessary to allow to replace the element with the CID<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span> /** pattern for extracting <img> tags */<a name="line.64"></a>
+<span class="sourceLineNo">065</span> private static final Pattern IMG_PATTERN = Pattern.compile(REGEX_IMG_SRC);<a name="line.65"></a>
+<span class="sourceLineNo">066</span><a name="line.66"></a>
+<span class="sourceLineNo">067</span> /** pattern for extracting <script> tags */<a name="line.67"></a>
+<span class="sourceLineNo">068</span> private static final Pattern SCRIPT_PATTERN = Pattern.compile(REGEX_SCRIPT_SRC);<a name="line.68"></a>
+<span class="sourceLineNo">069</span><a name="line.69"></a>
+<span class="sourceLineNo">070</span> /** resolve the images and script resources to a DataSource */<a name="line.70"></a>
+<span class="sourceLineNo">071</span> private DataSourceResolver dataSourceResolver;<a name="line.71"></a>
+<span class="sourceLineNo">072</span><a name="line.72"></a>
+<span class="sourceLineNo">073</span> /**<a name="line.73"></a>
+<span class="sourceLineNo">074</span> * Get the data source resolver.<a name="line.74"></a>
+<span class="sourceLineNo">075</span> *<a name="line.75"></a>
+<span class="sourceLineNo">076</span> * @return the resolver<a name="line.76"></a>
+<span class="sourceLineNo">077</span> */<a name="line.77"></a>
+<span class="sourceLineNo">078</span> public DataSourceResolver getDataSourceResolver()<a name="line.78"></a>
+<span class="sourceLineNo">079</span> {<a name="line.79"></a>
+<span class="sourceLineNo">080</span> return dataSourceResolver;<a name="line.80"></a>
+<span class="sourceLineNo">081</span> }<a name="line.81"></a>
+<span class="sourceLineNo">082</span><a name="line.82"></a>
+<span class="sourceLineNo">083</span> /**<a name="line.83"></a>
+<span class="sourceLineNo">084</span> * Set the data source resolver.<a name="line.84"></a>
+<span class="sourceLineNo">085</span> *<a name="line.85"></a>
+<span class="sourceLineNo">086</span> * @param dataSourceResolver the resolver<a name="line.86"></a>
+<span class="sourceLineNo">087</span> */<a name="line.87"></a>
+<span class="sourceLineNo">088</span> public void setDataSourceResolver(DataSourceResolver dataSourceResolver)<a name="line.88"></a>
+<span class="sourceLineNo">089</span> {<a name="line.89"></a>
+<span class="sourceLineNo">090</span> this.dataSourceResolver = dataSourceResolver;<a name="line.90"></a>
+<span class="sourceLineNo">091</span> }<a name="line.91"></a>
+<span class="sourceLineNo">092</span><a name="line.92"></a>
+<span class="sourceLineNo">093</span> /**<a name="line.93"></a>
+<span class="sourceLineNo">094</span> * Does the work of actually building the MimeMessage.<a name="line.94"></a>
+<span class="sourceLineNo">095</span> *<a name="line.95"></a>
+<span class="sourceLineNo">096</span> * @see org.apache.commons.mail.HtmlEmail#buildMimeMessage()<a name="line.96"></a>
+<span class="sourceLineNo">097</span> * @throws EmailException building the MimeMessage failed<a name="line.97"></a>
+<span class="sourceLineNo">098</span> */<a name="line.98"></a>
+<span class="sourceLineNo">099</span> @Override<a name="line.99"></a>
+<span class="sourceLineNo">100</span> public void buildMimeMessage() throws EmailException<a name="line.100"></a>
+<span class="sourceLineNo">101</span> {<a name="line.101"></a>
+<span class="sourceLineNo">102</span> try<a name="line.102"></a>
+<span class="sourceLineNo">103</span> {<a name="line.103"></a>
+<span class="sourceLineNo">104</span> // embed all the matching image and script resources within the email<a name="line.104"></a>
+<span class="sourceLineNo">105</span> String temp = replacePattern(super.html, IMG_PATTERN);<a name="line.105"></a>
+<span class="sourceLineNo">106</span> temp = replacePattern(temp, SCRIPT_PATTERN);<a name="line.106"></a>
+<span class="sourceLineNo">107</span> setHtmlMsg(temp);<a name="line.107"></a>
+<span class="sourceLineNo">108</span> super.buildMimeMessage();<a name="line.108"></a>
+<span class="sourceLineNo">109</span> }<a name="line.109"></a>
+<span class="sourceLineNo">110</span> catch (IOException e)<a name="line.110"></a>
+<span class="sourceLineNo">111</span> {<a name="line.111"></a>
+<span class="sourceLineNo">112</span> throw new EmailException("Building the MimeMessage failed", e);<a name="line.112"></a>
+<span class="sourceLineNo">113</span> }<a name="line.113"></a>
+<span class="sourceLineNo">114</span> }<a name="line.114"></a>
+<span class="sourceLineNo">115</span><a name="line.115"></a>
+<span class="sourceLineNo">116</span> /**<a name="line.116"></a>
+<span class="sourceLineNo">117</span> * Replace the regexp matching resource locations with "cid:..." references.<a name="line.117"></a>
+<span class="sourceLineNo">118</span> *<a name="line.118"></a>
+<span class="sourceLineNo">119</span> * @param htmlMessage the HTML message to analyze<a name="line.119"></a>
+<span class="sourceLineNo">120</span> * @param pattern the regular expression to find resources<a name="line.120"></a>
+<span class="sourceLineNo">121</span> * @return the HTML message containing "cid" references<a name="line.121"></a>
+<span class="sourceLineNo">122</span> * @throws EmailException creating the email failed<a name="line.122"></a>
+<span class="sourceLineNo">123</span> * @throws IOException resolving the resources failed<a name="line.123"></a>
+<span class="sourceLineNo">124</span> */<a name="line.124"></a>
+<span class="sourceLineNo">125</span> private String replacePattern(final String htmlMessage, final Pattern pattern)<a name="line.125"></a>
+<span class="sourceLineNo">126</span> throws EmailException, IOException<a name="line.126"></a>
+<span class="sourceLineNo">127</span> {<a name="line.127"></a>
+<span class="sourceLineNo">128</span> DataSource dataSource;<a name="line.128"></a>
+<span class="sourceLineNo">129</span> StringBuffer stringBuffer = new StringBuffer();<a name="line.129"></a>
+<span class="sourceLineNo">130</span><a name="line.130"></a>
+<span class="sourceLineNo">131</span> // maps "cid" --> name<a name="line.131"></a>
+<span class="sourceLineNo">132</span> Map<String, String> cidCache = new HashMap<String, String>();<a name="line.132"></a>
+<span class="sourceLineNo">133</span><a name="line.133"></a>
+<span class="sourceLineNo">134</span> // maps "name" --> dataSource<a name="line.134"></a>
+<span class="sourceLineNo">135</span> Map<String, DataSource> dataSourceCache = new HashMap<String, DataSource>();<a name="line.135"></a>
+<span class="sourceLineNo">136</span><a name="line.136"></a>
+<span class="sourceLineNo">137</span> // in the String, replace all "img src" with a CID and embed the related<a name="line.137"></a>
+<span class="sourceLineNo">138</span> // image file if we find it.<a name="line.138"></a>
+<span class="sourceLineNo">139</span> Matcher matcher = pattern.matcher(htmlMessage);<a name="line.139"></a>
+<span class="sourceLineNo">140</span><a name="line.140"></a>
+<span class="sourceLineNo">141</span> // the matcher returns all instances one by one<a name="line.141"></a>
+<span class="sourceLineNo">142</span> while (matcher.find())<a name="line.142"></a>
+<span class="sourceLineNo">143</span> {<a name="line.143"></a>
+<span class="sourceLineNo">144</span> // in the RegEx we have the <src> element as second "group"<a name="line.144"></a>
+<span class="sourceLineNo">145</span> String resourceLocation = matcher.group(2);<a name="line.145"></a>
+<span class="sourceLineNo">146</span><a name="line.146"></a>
+<span class="sourceLineNo">147</span> // avoid loading the same data source more than once<a name="line.147"></a>
+<span class="sourceLineNo">148</span> if (dataSourceCache.get(resourceLocation) == null)<a name="line.148"></a>
+<span class="sourceLineNo">149</span> {<a name="line.149"></a>
+<span class="sourceLineNo">150</span> // in lenient mode we might get a 'null' data source if the resource was not found<a name="line.150"></a>
+<span class="sourceLineNo">151</span> dataSource = getDataSourceResolver().resolve(resourceLocation);<a name="line.151"></a>
+<span class="sourceLineNo">152</span><a name="line.152"></a>
+<span class="sourceLineNo">153</span> if (dataSource != null)<a name="line.153"></a>
+<span class="sourceLineNo">154</span> {<a name="line.154"></a>
+<span class="sourceLineNo">155</span> dataSourceCache.put(resourceLocation, dataSource);<a name="line.155"></a>
+<span class="sourceLineNo">156</span> }<a name="line.156"></a>
+<span class="sourceLineNo">157</span> }<a name="line.157"></a>
+<span class="sourceLineNo">158</span> else<a name="line.158"></a>
+<span class="sourceLineNo">159</span> {<a name="line.159"></a>
+<span class="sourceLineNo">160</span> dataSource = dataSourceCache.get(resourceLocation);<a name="line.160"></a>
+<span class="sourceLineNo">161</span> }<a name="line.161"></a>
+<span class="sourceLineNo">162</span><a name="line.162"></a>
+<span class="sourceLineNo">163</span> if (dataSource != null)<a name="line.163"></a>
+<span class="sourceLineNo">164</span> {<a name="line.164"></a>
+<span class="sourceLineNo">165</span> String name = dataSource.getName();<a name="line.165"></a>
+<span class="sourceLineNo">166</span> if (EmailUtils.isEmpty(name))<a name="line.166"></a>
+<span class="sourceLineNo">167</span> {<a name="line.167"></a>
+<span class="sourceLineNo">168</span> name = resourceLocation;<a name="line.168"></a>
+<span class="sourceLineNo">169</span> }<a name="line.169"></a>
<span class="sourceLineNo">170</span><a name="line.170"></a>
-<span class="sourceLineNo">171</span> if (cid == null)<a name="line.171"></a>
-<span class="sourceLineNo">172</span> {<a name="line.172"></a>
-<span class="sourceLineNo">173</span> cid = embed(dataSource, dataSource.getName());<a name="line.173"></a>
-<span class="sourceLineNo">174</span> cidCache.put(name, cid);<a name="line.174"></a>
-<span class="sourceLineNo">175</span> }<a name="line.175"></a>
-<span class="sourceLineNo">176</span><a name="line.176"></a>
-<span class="sourceLineNo">177</span> // if we embedded something, then we need to replace the URL with<a name="line.177"></a>
-<span class="sourceLineNo">178</span> // the CID, otherwise the Matcher takes care of adding the<a name="line.178"></a>
-<span class="sourceLineNo">179</span> // non-replaced text afterwards, so no else is necessary here!<a name="line.179"></a>
-<span class="sourceLineNo">180</span> matcher.appendReplacement(stringBuffer,<a name="line.180"></a>
-<span class="sourceLineNo">181</span> Matcher.quoteReplacement(matcher.group(1) + "cid:" + cid + matcher.group(3)));<a name="line.181"></a>
-<span class="sourceLineNo">182</span> }<a name="line.182"></a>
-<span class="sourceLineNo">183</span> }<a name="line.183"></a>
-<span class="sourceLineNo">184</span><a name="line.184"></a>
-<span class="sourceLineNo">185</span> // append the remaining items...<a name="line.185"></a>
-<span class="sourceLineNo">186</span> matcher.appendTail(stringBuffer);<a name="line.186"></a>
-<span class="sourceLineNo">187</span><a name="line.187"></a>
-<span class="sourceLineNo">188</span> cidCache.clear();<a name="line.188"></a>
-<span class="sourceLineNo">189</span> dataSourceCache.clear();<a name="line.189"></a>
-<span class="sourceLineNo">190</span><a name="line.190"></a>
-<span class="sourceLineNo">191</span> return stringBuffer.toString();<a name="line.191"></a>
-<span class="sourceLineNo">192</span> }<a name="line.192"></a>
-<span class="sourceLineNo">193</span>}<a name="line.193"></a>
+<span class="sourceLineNo">171</span> String cid = cidCache.get(name);<a name="line.171"></a>
+<span class="sourceLineNo">172</span><a name="line.172"></a>
+<span class="sourceLineNo">173</span> if (cid == null)<a name="line.173"></a>
+<span class="sourceLineNo">174</span> {<a name="line.174"></a>
+<span class="sourceLineNo">175</span> cid = embed(dataSource, dataSource.getName());<a name="line.175"></a>
+<span class="sourceLineNo">176</span> cidCache.put(name, cid);<a name="line.176"></a>
+<span class="sourceLineNo">177</span> }<a name="line.177"></a>
+<span class="sourceLineNo">178</span><a name="line.178"></a>
+<span class="sourceLineNo">179</span> // if we embedded something, then we need to replace the URL with<a name="line.179"></a>
+<span class="sourceLineNo">180</span> // the CID, otherwise the Matcher takes care of adding the<a name="line.180"></a>
+<span class="sourceLineNo">181</span> // non-replaced text afterwards, so no else is necessary here!<a name="line.181"></a>
+<span class="sourceLineNo">182</span> matcher.appendReplacement(stringBuffer,<a name="line.182"></a>
+<span class="sourceLineNo">183</span> Matcher.quoteReplacement(matcher.group(1) + "cid:" + cid + matcher.group(3)));<a name="line.183"></a>
+<span class="sourceLineNo">184</span> }<a name="line.184"></a>
+<span class="sourceLineNo">185</span> }<a name="line.185"></a>
+<span class="sourceLineNo">186</span><a name="line.186"></a>
+<span class="sourceLineNo">187</span> // append the remaining items...<a name="line.187"></a>
+<span class="sourceLineNo">188</span> matcher.appendTail(stringBuffer);<a name="line.188"></a>
+<span class="sourceLineNo">189</span><a name="line.189"></a>
+<span class="sourceLineNo">190</span> cidCache.clear();<a name="line.190"></a>
+<span class="sourceLineNo">191</span> dataSourceCache.clear();<a name="line.191"></a>
+<span class="sourceLineNo">192</span><a name="line.192"></a>
+<span class="sourceLineNo">193</span> return stringBuffer.toString();<a name="line.193"></a>
+<span class="sourceLineNo">194</span> }<a name="line.194"></a>
+<span class="sourceLineNo">195</span>}<a name="line.195"></a>
Modified: websites/production/commons/content/proper/commons-email/building.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/building.html (original)
+++ websites/production/commons/content/proper/commons-email/building.html Wed Feb 19 20:31:43 2014
@@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!-- Generated by Apache Maven Doxia at 20 October 2013 ( $Revision: 1080083 $ ) -->
+<!-- Generated by Apache Maven Doxia at 19 February 2014 ( $Revision: 1080083 $ ) -->
<!-- $HeadURL: https://svn.apache.org/repos/asf/commons/proper/commons-skin/trunk/src/main/resources/META-INF/maven/site.vm $ -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
@@ -13,7 +13,7 @@
</style>
<link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
<meta name="author" content="Commons Documentation Team" />
- <meta name="Date-Revision-yyyymmdd" content="20131020" />
+ <meta name="Date-Revision-yyyymmdd" content="20140219" />
<meta http-equiv="Content-Language" content="en" />
<link rel="stylesheet" type="text/css" media="all" href="./css/prettify.css"/>
@@ -42,8 +42,8 @@
<div class="xleft">
- <span id="publishDate">Last Published: 20 October 2013</span>
- | <span id="projectVersion">Version: 1.3.2</span>
+ <span id="publishDate">Last Published: 19 February 2014</span>
+ | <span id="projectVersion">Version: 1.4.0-SNAPSHOT</span>
</div>
<div class="xright"> <a href="http://www.apachecon.com/" class="externalLink" title="ApacheCon">ApacheCon</a>
|
@@ -235,13 +235,13 @@ limitations under the License. -->
<hr/>
</div>
<div id="footer">
- <div class="center">Copyright © 2001-2013
+ <div class="center">Copyright © 2001-2014
<a href="http://www.apache.org/">The Apache Software Foundation</a>.
All Rights Reserved.
</div>
-<div class="center">Apache Commons, Apache Commons Email, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
+<div class="center">Apache Commons, Apache Apache Commons Email, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
All other marks mentioned may be trademarks or registered trademarks of their respective owners.</div>
<div class="clear">
<hr/>
Modified: websites/production/commons/content/proper/commons-email/changes-report.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/changes-report.html (original)
+++ websites/production/commons/content/proper/commons-email/changes-report.html Wed Feb 19 20:31:43 2014
@@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!-- Generated by Apache Maven Doxia at 24 October 2013 ( $Revision: 1080083 $ ) -->
+<!-- Generated by Apache Maven Doxia at 19 February 2014 ( $Revision: 1080083 $ ) -->
<!-- $HeadURL: https://svn.apache.org/repos/asf/commons/proper/commons-skin/trunk/src/main/resources/META-INF/maven/site.vm $ -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
@@ -12,7 +12,7 @@
</style>
<link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
<meta name="author" content="Eric Pugh" />
- <meta name="Date-Revision-yyyymmdd" content="20131024" />
+ <meta name="Date-Revision-yyyymmdd" content="20140219" />
<meta http-equiv="Content-Language" content="en" />
<link rel="stylesheet" type="text/css" media="all" href="./css/prettify.css"/>
@@ -41,8 +41,8 @@
<div class="xleft">
- <span id="publishDate">Last Published: 24 October 2013</span>
- | <span id="projectVersion">Version: 1.3.2</span>
+ <span id="publishDate">Last Published: 19 February 2014</span>
+ | <span id="projectVersion">Version: 1.4.0-SNAPSHOT</span>
</div>
<div class="xright"> <a href="http://www.apachecon.com/" class="externalLink" title="ApacheCon">ApacheCon</a>
|
@@ -216,65 +216,80 @@
<th>Date</th>
<th>Description</th></tr>
<tr class="b">
+<td><a href="#a1.4.0">1.4.0</a></td>
+<td>xxx</td>
+<td> </td></tr>
+<tr class="a">
<td><a href="#a1.3.2">1.3.2</a></td>
<td>2013-10-23</td>
<td> </td></tr>
-<tr class="a">
+<tr class="b">
<td><a href="#a1.3.1">1.3.1</a></td>
<td>2013-03-04</td>
<td> </td></tr>
-<tr class="b">
+<tr class="a">
<td><a href="#a1.3">1.3</a></td>
<td>2013-01-10</td>
<td> </td></tr>
-<tr class="a">
+<tr class="b">
<td><a href="#a1.2">1.2</a></td>
<td>2009-10-26</td>
<td> </td></tr>
-<tr class="b">
+<tr class="a">
<td><a href="#a1.1">1.1</a></td>
<td>2007-09-27</td>
<td> </td></tr>
-<tr class="a">
+<tr class="b">
<td><a href="#a1.0">1.0</a></td>
<td>2005-09-27</td>
<td> </td></tr>
-<tr class="b">
+<tr class="a">
<td><a href="#a1.0-rc8">1.0-rc8</a></td>
<td>2005-09-07</td>
<td> </td></tr>
-<tr class="a">
+<tr class="b">
<td><a href="#a1.0-rc6-SNAPSHOT">1.0-rc6-SNAPSHOT</a></td>
<td>in Subversion</td>
<td> </td></tr></table></div>
<div class="section">
-<h3>Release 1.3.2 - 2013-10-23<a name="Release_1.3.2_-_2013-10-23"></a></h3><a name="a1.3.2"></a>
+<h3>Release 1.4.0 - xxx<a name="Release_1.4.0_-_xxx"></a></h3><a name="a1.4.0"></a>
<table border="0" class="bodyTable">
-<tr class="b">
+<tr class="a">
<th>Type</th>
<th>Changes</th>
<th>By</th></tr>
+<tr class="b">
+<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
+<td>Fix Javadoc 1.8 errors. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-136">EMAIL-136</a>. Thanks to Ville Skyttä.</td>
+<td><a href="team-list.html#ggregory">ggregory</a></td></tr></table></div>
+<div class="section">
+<h3>Release 1.3.2 - 2013-10-23<a name="Release_1.3.2_-_2013-10-23"></a></h3><a name="a1.3.2"></a>
+<table border="0" class="bodyTable">
<tr class="a">
+<th>Type</th>
+<th>Changes</th>
+<th>By</th></tr>
+<tr class="b">
<td><img src="images/update.gif" alt="update" title="update" /></td>
<td>Change visibility of DataSourceUrlResourceResolver.createUrl(String) to protected so
that sub-classes can override it. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-135">EMAIL-135</a>. Thanks to Andreas Kohn.</td>
<td><a href="team-list.html#tn">tn</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Support default mime charset property "mail.mime.charset" when adding text content
to instances of either SimpleEmail or HtmlEmail. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-104">EMAIL-104</a>. Thanks to Hiroshi Ikeda.</td>
<td><a href="team-list.html#tn">tn</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Added support for sending partial emails in case of invalid addresses. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-132">EMAIL-132</a>. Thanks to Allen Xudong Cheng.</td>
<td><a href="team-list.html#tn">tn</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>The MimeMessageParser will now correctly parse MIME multi-parts of type "text/plain"
and "text/html" with a content disposition header of "attachment". The parts will
be added to the list of attachments even if there is no other text or html content. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-131">EMAIL-131</a>. Thanks to Raju Y.</td>
<td><a href="team-list.html#tn">tn</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Special characters in the body of an HTML email could lead to an exception when the
mime message was built. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-127">EMAIL-127</a>. Thanks to Dominik Stadler.</td>
@@ -282,16 +297,16 @@
<div class="section">
<h3>Release 1.3.1 - 2013-03-04<a name="Release_1.3.1_-_2013-03-04"></a></h3><a name="a1.3.1"></a>
<table border="0" class="bodyTable">
-<tr class="b">
+<tr class="a">
<th>Type</th>
<th>Changes</th>
<th>By</th></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>DataSourceClassPathResolver will now correctly set the DataSource name for resolved
resources. Additionally, it is now possible to set the name for a ByteArrayDataSource. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-125">EMAIL-125</a>. Thanks to Jean-Marc.</td>
<td><a href="team-list.html#tn">tn</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Header values are not folded twice anymore. The actual encoding and folding is
now only performed in Email.buildMimeMessage(). Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-124">EMAIL-124</a>. Thanks to Stefan Schueffler.</td>
@@ -299,43 +314,43 @@
<div class="section">
<h3>Release 1.3 - 2013-01-10<a name="Release_1.3_-_2013-01-10"></a></h3><a name="a1.3"></a>
<table border="0" class="bodyTable">
-<tr class="a">
+<tr class="b">
<th>Type</th>
<th>Changes</th>
<th>By</th></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Use the provided Content-ID in HtmlEmail#embed(File, String) instead of creating
a random one. The used and returned Content-ID will be URL encoded (see RFC 2392). Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-101">EMAIL-101</a>. Thanks to Andrew Starodub.</td>
<td><a href="team-list.html#tn">tn</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Upgraded source and binary compatibility to JDK 1.5. Additionally the public/protected
methods and fields have been properly generified. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-122">EMAIL-122</a>. Thanks to sebb.</td>
<td><a href="team-list.html#tn">tn</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Do not set the personal name of an address to the email address unless it is
explicitly specified (affects TO, CC, BCC and FROM addresses). Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-103">EMAIL-103</a>. Thanks to David Rees.</td>
<td><a href="team-list.html#tn">tn</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Added new methods addTo(String[]), addCc(String[]) and addBcc(String[]) to Email. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-114">EMAIL-114</a>. Thanks to Gokul Nanthakumar C.</td>
<td><a href="team-list.html#tn">tn</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Removed emulation support for nested exceptions in EmailException. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-117">EMAIL-117</a>. Thanks to sebb.</td>
<td><a href="team-list.html#tn">tn</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Prevent external modification of internal array in DataSourceCompositeResolver. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-116">EMAIL-116</a>. Thanks to sebb.</td>
<td><a href="team-list.html#tn">tn</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Close temporary input stream in MultiPartEmail#attach(DataSource, String, String)
to prevent locking of file resources on windows systems. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-120">EMAIL-120</a>. Thanks to Mike Bell.</td>
<td><a href="team-list.html#tn">tn</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>The patch actually broke sending emails over a secured connection - disabled the
"MAIL_SMTP_SSL_CHECKSERVERIDENTITY" and "MAIL_SMTP_SSL_ENABLE" activation. Tested
@@ -343,96 +358,96 @@
a couple of existing SMTP servers. Also added 'sslCheckServerIdentity' including
setter and getter. Also added a chapter regarding "Security" to the user manual. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-105">EMAIL-105</a>. Thanks to Siegfried Goeschl.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Maven Site fails with error in Checkstyle configuration. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-113">EMAIL-113</a>. Thanks to Peter Kofler.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>DataSourceFileResolverTest fails under IBM JDK 1.4 and 1.6 running on Windows. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-112">EMAIL-112</a>. Thanks to Peter Kofler.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Update the current trunk to be binary compatible with the commons-email-1.2 release. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-111">EMAIL-111</a>. Thanks to Florian Pirchner.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Added unit test to ensure that parsing the broken mime message does not cause an OutOfMemoryException. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-110">EMAIL-110</a>. Thanks to Thomas Pummer.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>ImageHtmlEmail should support class path resources. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-108">EMAIL-108</a>. Thanks to Elisabeth Kasimir, Alexander Kasimir.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Added mime.types to META-INF - the definition is actually found in activation.jar
but did not work. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-107">EMAIL-107</a>. Thanks to Claus Polanka, Michael Jakl.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>STARTTLS can be used even without authenticator. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-106">EMAIL-106</a>. Thanks to Bruno Harbulot.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Clarified the meaning of setTLS() which actually sends a "STARTTLS" command from the
client to the SMTP server. Please note that some "protected" variables were renamed
which could break existing code. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-105">EMAIL-105</a>. Thanks to Bruno Harbulot.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Fixed HtmlEmail embed toLowerCase bug with Turkish locale. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-102">EMAIL-102</a>. Thanks to Okan Özeren.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Added a MultiPartEmail.attach(File) method since attaching a file is a simple and common.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Specified Content-ID is now used when embedding a File object in an HtmlEmail. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-101">EMAIL-101</a>. Thanks to Andrew Starodub.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Restore Java 1.4 compatibility.</td>
<td><a href="team-list.html#niallp">niallp</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Added MimeMessageParser and MimeMessageUtils.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Throwing an IllegalStateException when setting mail session properties for an already
created mail session because the settings would be ignored. Please note that this
change could potentially break existing (but invalid) code. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-96">EMAIL-96</a>.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Encoding and folding of headers is now done by commons-email. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-98">EMAIL-98</a>. Thanks to Mario Daepp.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>The default connection timeout is set to a reasonable default value of 60 seconds. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-100">EMAIL-100</a>. Thanks to David Parks.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Moving the various constants from 'EMail' to 'EmailConstants'</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>All setters are returning "this" to simplify building an email. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-76">EMAIL-76</a>. Thanks to Yu Kobayashi.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Adding ImageHtmlEmail to create HTML emails with embedded images either
downloaded from HTTP or from the local file system. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-92">EMAIL-92</a>. Thanks to Dominik Stadler.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Calling buildMimeMessage() before invoking send() caused
duplicated mime parts for HtmlEmail. The implementation now enforces
that an email can be only used once and throw an exception when
multiple invocations of buildMimeMessage() are detected. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-95">EMAIL-95</a>.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Incorrect SMTP Port number shown in error message when an email fails
to send due to a blocked port and SSL is used. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-91">EMAIL-91</a>. Thanks to Kevin Lester.</td>
@@ -440,76 +455,76 @@
<div class="section">
<h3>Release 1.2 - 2009-10-26<a name="Release_1.2_-_2009-10-26"></a></h3><a name="a1.2"></a>
<table border="0" class="bodyTable">
-<tr class="a">
+<tr class="b">
<th>Type</th>
<th>Changes</th>
<th>By</th></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/update.gif" alt="update" title="update" /></td>
<td>Changing groupId from "commons-email" to "org.apache.commons"
because the 1.1 release was already using "org.apache.commons"</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Using "http://example.invalid" for a bad url - ".invalid" is reserved
and not intended to be installed as a top-level domain in the global
Domain Name System (DNS) of the Internet. Thanks to sebb.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Made BaseEmailTestCase abstract and fixed a few coding issues. Thanks to sebb.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>HtmlEmail invokes java.net.URL.equals(Object), which blocks to do domain name resolution. This
is avoided by using "url.toExternalForm().equals()" instead of "url.equals()". Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-87">EMAIL-87</a>. Thanks to sebb.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Email.setFrom and Email.addTo are using Email.charset to properly encode the name. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-75">EMAIL-75</a>. Thanks to Yu Kobayashi.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>SimpleEmail#setMsg() with UTF-8 content honors correct charset in header and
does encode the content correctly now. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-79">EMAIL-79</a>. Thanks to Edvin Syse, Corey Scott.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Created additional methods to support timeouts. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-84">EMAIL-84</a>. Thanks to Claudio Miranda.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Create an overridable method in Email.java to create the MimeMessage instance. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-74">EMAIL-74</a>. Thanks to Jim McCabe, Corey Scott.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>If setHostName() has not been called, getHostName() tries to return
this.session.getProperty(MAIL_HOST). If mail session has not been
created yet, this will throw a NullPointerException. Now getHostName()
checks that this.session is not null before trying to access it. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-71">EMAIL-71</a>. Thanks to Teemu Lang, Corey Scott.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Add getTo and getReplyTo to Email class. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-81">EMAIL-81</a>. Thanks to Travis Reader, Corey Scott.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Provide better diagnostics when attaching documents fail. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-78">EMAIL-78</a>. Thanks to Aaron Digulla, Corey Scott.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>When mail authentication is required and no username/password is supplied
than the provided mail session is used. If a username/password is found
the implementation creates a new mail session and a DefaultAuthenticator
as convinence implementation. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-70">EMAIL-70</a>. Thanks to F. Andy Seidl.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Using Kenneth's implementation of HtmlEmail.buildMimeMessage() to fix a
couple of HtmlEmail layout issues. Also thanks to Martin Lau and Morten
Hattesen for providing in-depth analysis of the problem Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-65">EMAIL-65</a>. Thanks to Kenneth Gendron.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>During regression tests write out the generated MimeMessage instead of
WiserEmail.toString().</td>
@@ -517,77 +532,77 @@
<div class="section">
<h3>Release 1.1 - 2007-09-27<a name="Release_1.1_-_2007-09-27"></a></h3><a name="a1.1"></a>
<table border="0" class="bodyTable">
-<tr class="b">
+<tr class="a">
<th>Type</th>
<th>Changes</th>
<th>By</th></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Support embedding of raw DataSource attachments in HtmlEmail. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-35">EMAIL-35</a>. Thanks to Brandon Wolfe.</td>
<td><a href="team-list.html#bspeakmon">bspeakmon</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/update.gif" alt="update" title="update" /></td>
<td>Use wiser instead of dumbster for test cases. Original patch supplied by Bindul Bhowmik. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-64">EMAIL-64</a>. Thanks to Ben Speakmon.</td>
<td><a href="team-list.html#bspeakmon">bspeakmon</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Build patches to enforce source 1.4 and target 1.4 when compiling. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-62">EMAIL-62</a>. Thanks to Ben Speakmon.</td>
<td><a href="team-list.html#dion">dion</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Identical Inline images should share same BodyPart.
Fixed by EMAIL-50. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-52">EMAIL-52</a>. Thanks to Andrew Liles.</td>
<td><a href="team-list.html#dion">dion</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Problems with HTML emails with attachments and embedded images.
Fixed by EMAIL-50. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-28">EMAIL-28</a>. Thanks to Phil Bretherton.</td>
<td><a href="team-list.html#dion">dion</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>HTML Emails with images don't display in Outlook 2000.
Fix from Ben Speakmon. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-50">EMAIL-50</a>. Thanks to Andrew Liles.</td>
<td><a href="team-list.html#dion">dion</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Use JDK1.4 and java.nio.Charset instead of keeping our own.
Fix from Ben Speakmon. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-54">EMAIL-54</a>. Thanks to Piero Ottuzzi.</td>
<td><a href="team-list.html#dion">dion</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>not support content charset gb2312.
Fixed by EMAIL-54. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-14">EMAIL-14</a>. Thanks to locka.</td>
<td><a href="team-list.html#dion">dion</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Address char-set can not be individually set.
Fixed by EMAIL-54. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-25">EMAIL-25</a>. Thanks to James Huang.</td>
<td><a href="team-list.html#dion">dion</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>setCharset() in Email does not set the charset for the message content.
Fix provided by Ben Speakmon. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-1">EMAIL-1</a>. Thanks to James Mc Millan.</td>
<td><a href="team-list.html#dion">dion</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Enhance website</td>
<td><a href="team-list.html#scolebourne">scolebourne</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Added Email.setReplyTo(Collection) Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-45">EMAIL-45</a>. Thanks to Dave Cherkassky.</td>
<td><a href="team-list.html#dion">dion</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>If you provide a mailSession in tomcat you cannot send email using
commons-email: the problem is mainly caused by typos or missing constant
declaration. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-37">EMAIL-37</a>. Thanks to Piero Ottuzzi.</td>
<td><a href="team-list.html#dion">dion</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Added TLS helper methods on Email
and Added setMailSessionFromJNDI(String) helper method Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-48">EMAIL-48</a>.</td>
<td><a href="team-list.html#dion">dion</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Added HtmlEmail.embed(String,String) as a wrapper to embed(URL,String) Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-7">EMAIL-7</a>. Thanks to Nuno Ponte.</td>
<td><a href="team-list.html#dion">dion</a></td></tr></table></div>
@@ -597,26 +612,26 @@
<div class="section">
<h3>Release 1.0-rc8 - 2005-09-07<a name="Release_1.0-rc8_-_2005-09-07"></a></h3><a name="a1.0-rc8"></a>
<table border="0" class="bodyTable">
-<tr class="b">
+<tr class="a">
<th>Type</th>
<th>Changes</th>
<th>By</th></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Make sure that the unit tests don't fail under JDK 1.3.x with
java.net.BindException: Address already in use</td>
<td><a href="team-list.html#henning">henning</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/update.gif" alt="update" title="update" /></td>
<td>Replace our usage of address.validate() with simpler code that allows
commons-email to work with javamail 1.2 / J2EE 1.3 environment. Added an
unit test which verifies the behaviour. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-49">EMAIL-49</a>. Thanks to Niall Pemberton.</td>
<td><a href="team-list.html#henning">henning</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/update.gif" alt="update" title="update" /></td>
<td>Add an unit test to check for invalid addresses. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-58">EMAIL-58</a>. Thanks to Niall Pemberton.</td>
<td><a href="team-list.html#henning">henning</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/update.gif" alt="update" title="update" /></td>
<td>Remove dependencies to commons-lang, allowing commons-email to exist without
any external dependencies in an J2EE 1.4+ environment. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-12">EMAIL-12</a>. Thanks to Stephen Colebourne.</td>
@@ -624,85 +639,85 @@
<div class="section">
<h3>Release 1.0-rc6-SNAPSHOT - in Subversion<a name="Release_1.0-rc6-SNAPSHOT_-_in_Subversion"></a></h3><a name="a1.0-rc6-SNAPSHOT"></a>
<table border="0" class="bodyTable">
-<tr class="a">
+<tr class="b">
<th>Type</th>
<th>Changes</th>
<th>By</th></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/update.gif" alt="update" title="update" /></td>
<td>Improve MultiPartEmail to ease extending it. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-51">EMAIL-51</a>. Thanks to Troy Poppe.</td>
<td><a href="team-list.html#epugh">epugh</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/update.gif" alt="update" title="update" /></td>
<td>Refactoring the code to seperate creation of a MimeMessage and sending it.</td>
<td><a href="team-list.html#sgoeschl">sgoeschl</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/update.gif" alt="update" title="update" /></td>
<td>Add serialVersionUID to EmailException</td>
<td><a href="team-list.html#dion">dion</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/update.gif" alt="update" title="update" /></td>
<td>Use Dumbster 1.6 compiled with jdk13 for testing</td>
<td><a href="team-list.html#dion">dion</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/fix.gif" alt="fix" title="fix" /></td>
<td>Refactor Hashtable usage to Map Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-24">EMAIL-24</a>. Thanks to Eric Spiegelberg.</td>
<td><a href="team-list.html#dion">dion</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Email throws EmailException wrapping underlying JavaMail exception Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-42">EMAIL-42</a>. Thanks to Mark Lowe.</td>
<td><a href="team-list.html#epugh">epugh</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Change port for dumbster from 25 to 2500 to use unreserved port. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-32">EMAIL-32</a>. Thanks to Corey Scott.</td>
<td><a href="team-list.html#epugh">epugh</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Add back in ByteArrayDataSource. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-3">EMAIL-3</a>. Thanks to Corey Scott.</td>
<td><a href="team-list.html#epugh">epugh</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/remove.gif" alt="remove" title="remove" /></td>
<td>Removed deprecated MailMessage and ByteArrayDataSource.</td>
<td><a href="team-list.html#epugh">epugh</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Output test emails to /target/test-emails as .txt files for manual
review.</td>
<td><a href="team-list.html#epugh">epugh</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Inline attatchment encoding was incorrect. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-19">EMAIL-19</a>. Thanks to Mark Lowe.</td>
<td><a href="team-list.html#epugh">epugh</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Integrate our own checkstyle config instead of using Turbine style only.</td>
<td><a href="team-list.html#epugh">epugh</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Clone the System.getProperties() call instead of putting random properties
into it. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-55">EMAIL-55</a>. Thanks to Joe Germuska.</td>
<td><a href="team-list.html#epugh">epugh</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Can't supply a javax.mail.Session to Commons Email component Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-8">EMAIL-8</a>.</td>
<td><a href="team-list.html#epugh">epugh</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>HTML email with plain text alternative and attachments Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-23">EMAIL-23</a>. Thanks to Corey Scott.</td>
<td><a href="team-list.html#epugh">epugh</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Integrate use of Dumbster to supply a fake SMTP server. Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-33">EMAIL-33</a>. Thanks to Corey Scott.</td>
<td><a href="team-list.html#epugh">epugh</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Lots of new unit tests and cleanup of code. Thanks to Corey Scott.</td>
<td><a href="team-list.html#epugh">epugh</a></td></tr>
-<tr class="a">
+<tr class="b">
<td><img src="images/update.gif" alt="update" title="update" /></td>
<td>Update dependencies to latest available.</td>
<td><a href="team-list.html#epugh">epugh</a></td></tr>
-<tr class="b">
+<tr class="a">
<td><img src="images/add.gif" alt="add" title="add" /></td>
<td>Support the delivery of bounced messages to an address other than "from". Fixes <a class="externalLink" href="http://issues.apache.org/jira/browse/EMAIL-55">EMAIL-55</a>.</td>
<td><a href="team-list.html#germuska">germuska</a></td></tr></table></div></div>
@@ -712,13 +727,13 @@
<hr/>
</div>
<div id="footer">
- <div class="center">Copyright © 2001-2013
+ <div class="center">Copyright © 2001-2014
<a href="http://www.apache.org/">The Apache Software Foundation</a>.
All Rights Reserved.
</div>
-<div class="center">Apache Commons, Apache Commons Email, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
+<div class="center">Apache Commons, Apache Apache Commons Email, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
All other marks mentioned may be trademarks or registered trademarks of their respective owners.</div>
<div class="clear">
<hr/>
Modified: websites/production/commons/content/proper/commons-email/checkstyle.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/checkstyle.html (original)
+++ websites/production/commons/content/proper/commons-email/checkstyle.html Wed Feb 19 20:31:43 2014
@@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!-- Generated by Apache Maven Doxia at 24 October 2013 ( $Revision: 1080083 $ ) -->
+<!-- Generated by Apache Maven Doxia at 19 February 2014 ( $Revision: 1080083 $ ) -->
<!-- $HeadURL: https://svn.apache.org/repos/asf/commons/proper/commons-skin/trunk/src/main/resources/META-INF/maven/site.vm $ -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
@@ -11,7 +11,7 @@
@import url("./css/site.css");
</style>
<link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
- <meta name="Date-Revision-yyyymmdd" content="20131024" />
+ <meta name="Date-Revision-yyyymmdd" content="20140219" />
<meta http-equiv="Content-Language" content="en" />
<link rel="stylesheet" type="text/css" media="all" href="./css/prettify.css"/>
@@ -40,8 +40,8 @@
<div class="xleft">
- <span id="publishDate">Last Published: 24 October 2013</span>
- | <span id="projectVersion">Version: 1.3.2</span>
+ <span id="publishDate">Last Published: 19 February 2014</span>
+ | <span id="projectVersion">Version: 1.4.0-SNAPSHOT</span>
</div>
<div class="xright"> <a href="http://www.apachecon.com/" class="externalLink" title="ApacheCon">ApacheCon</a>
|
@@ -237,13 +237,13 @@
<hr/>
</div>
<div id="footer">
- <div class="center">Copyright © 2001-2013
+ <div class="center">Copyright © 2001-2014
<a href="http://www.apache.org/">The Apache Software Foundation</a>.
All Rights Reserved.
</div>
-<div class="center">Apache Commons, Apache Commons Email, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
+<div class="center">Apache Commons, Apache Apache Commons Email, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
All other marks mentioned may be trademarks or registered trademarks of their respective owners.</div>
<div class="clear">
<hr/>
Modified: websites/production/commons/content/proper/commons-email/checkstyle.rss
==============================================================================
Binary files - no diff available.
Modified: websites/production/commons/content/proper/commons-email/clirr-report.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/clirr-report.html (original)
+++ websites/production/commons/content/proper/commons-email/clirr-report.html Wed Feb 19 20:31:43 2014
@@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!-- Generated by Apache Maven Doxia at 24 October 2013 ( $Revision: 1080083 $ ) -->
+<!-- Generated by Apache Maven Doxia at 19 February 2014 ( $Revision: 1080083 $ ) -->
<!-- $HeadURL: https://svn.apache.org/repos/asf/commons/proper/commons-skin/trunk/src/main/resources/META-INF/maven/site.vm $ -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
@@ -11,7 +11,7 @@
@import url("./css/site.css");
</style>
<link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
- <meta name="Date-Revision-yyyymmdd" content="20131024" />
+ <meta name="Date-Revision-yyyymmdd" content="20140219" />
<meta http-equiv="Content-Language" content="en" />
<link rel="stylesheet" type="text/css" media="all" href="./css/prettify.css"/>
@@ -40,8 +40,8 @@
<div class="xleft">
- <span id="publishDate">Last Published: 24 October 2013</span>
- | <span id="projectVersion">Version: 1.3.2</span>
+ <span id="publishDate">Last Published: 19 February 2014</span>
+ | <span id="projectVersion">Version: 1.4.0-SNAPSHOT</span>
</div>
<div class="xright"> <a href="http://www.apachecon.com/" class="externalLink" title="ApacheCon">ApacheCon</a>
|
@@ -209,8 +209,8 @@
<h2>Clirr Results<a name="Clirr_Results"></a></h2>
<p>The following document contains the results of <a class="externalLink" href="http://clirr.sourceforge.net/">Clirr</a>.</p>
<ul>
-<li>Current Version: 1.3.2</li>
-<li>Comparison Version: 1.3.1</li></ul></div>
+<li>Current Version: 1.4.0-SNAPSHOT</li>
+<li>Comparison Version: 1.3.2</li></ul></div>
<div class="section">
<h2>Summary<a name="Summary"></a></h2>
<table border="0" class="bodyTable">
@@ -225,63 +225,23 @@
<td>0</td></tr>
<tr class="b">
<td><img alt="Info" src="images/icon_info_sml.gif" /> Info</td>
-<td>7</td></tr></table></div>
+<td>0</td></tr></table></div>
<div class="section">
<h2>Details<a name="Details"></a></h2>
-<table border="0" class="bodyTable">
-<tr class="a">
-<th>Severity</th>
-<th>Message</th>
-<th>Class</th>
-<th>Method / Field</th></tr>
-<tr class="b">
-<td><img alt="Info" src="images/icon_info_sml.gif" /></td>
-<td>Method 'public boolean isSendPartial()' has been added</td>
-<td><a href="./xref/org/apache/commons/mail/Email.html">org.apache.commons.mail.Email</a></td>
-<td>public boolean isSendPartial()</td></tr>
-<tr class="a">
-<td><img alt="Info" src="images/icon_info_sml.gif" /></td>
-<td>Method 'public org.apache.commons.mail.Email setSendPartial(boolean)' has been added</td>
-<td><a href="./xref/org/apache/commons/mail/Email.html">org.apache.commons.mail.Email</a></td>
-<td>public org.apache.commons.mail.Email setSendPartial(boolean)</td></tr>
-<tr class="b">
-<td><img alt="Info" src="images/icon_info_sml.gif" /></td>
-<td>Added public field MAIL_MIME_CHARSET</td>
-<td><a href="./xref/org/apache/commons/mail/EmailConstants.html">org.apache.commons.mail.EmailConstants</a></td>
-<td>MAIL_MIME_CHARSET</td></tr>
-<tr class="a">
-<td><img alt="Info" src="images/icon_info_sml.gif" /></td>
-<td>Added public field MAIL_SMTPS_SEND_PARTIAL</td>
-<td><a href="./xref/org/apache/commons/mail/EmailConstants.html">org.apache.commons.mail.EmailConstants</a></td>
-<td>MAIL_SMTPS_SEND_PARTIAL</td></tr>
-<tr class="b">
-<td><img alt="Info" src="images/icon_info_sml.gif" /></td>
-<td>Added public field MAIL_SMTP_SEND_PARTIAL</td>
-<td><a href="./xref/org/apache/commons/mail/EmailConstants.html">org.apache.commons.mail.EmailConstants</a></td>
-<td>MAIL_SMTP_SEND_PARTIAL</td></tr>
-<tr class="a">
-<td><img alt="Info" src="images/icon_info_sml.gif" /></td>
-<td>Added public field TEXT_SUBTYPE_HTML</td>
-<td><a href="./xref/org/apache/commons/mail/EmailConstants.html">org.apache.commons.mail.EmailConstants</a></td>
-<td>TEXT_SUBTYPE_HTML</td></tr>
-<tr class="b">
-<td><img alt="Info" src="images/icon_info_sml.gif" /></td>
-<td>Accessibility of method 'private java.net.URL createUrl(java.lang.String)' has been increased from private to protected</td>
-<td><a href="./xref/org/apache/commons/mail/resolver/DataSourceUrlResolver.html">org.apache.commons.mail.resolver.DataSourceUrlResolver</a></td>
-<td>private java.net.URL createUrl(java.lang.String)</td></tr></table></div>
+<p>No results for the given severities.</p></div>
</div>
</div>
<div class="clear">
<hr/>
</div>
<div id="footer">
- <div class="center">Copyright © 2001-2013
+ <div class="center">Copyright © 2001-2014
<a href="http://www.apache.org/">The Apache Software Foundation</a>.
All Rights Reserved.
</div>
-<div class="center">Apache Commons, Apache Commons Email, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
+<div class="center">Apache Commons, Apache Apache Commons Email, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
All other marks mentioned may be trademarks or registered trademarks of their respective owners.</div>
<div class="clear">
<hr/>
Modified: websites/production/commons/content/proper/commons-email/cpd.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/cpd.html (original)
+++ websites/production/commons/content/proper/commons-email/cpd.html Wed Feb 19 20:31:43 2014
@@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!-- Generated by Apache Maven Doxia at 24 October 2013 ( $Revision: 1080083 $ ) -->
+<!-- Generated by Apache Maven Doxia at 19 February 2014 ( $Revision: 1080083 $ ) -->
<!-- $HeadURL: https://svn.apache.org/repos/asf/commons/proper/commons-skin/trunk/src/main/resources/META-INF/maven/site.vm $ -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
@@ -11,7 +11,7 @@
@import url("./css/site.css");
</style>
<link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
- <meta name="Date-Revision-yyyymmdd" content="20131024" />
+ <meta name="Date-Revision-yyyymmdd" content="20140219" />
<meta http-equiv="Content-Language" content="en" />
<link rel="stylesheet" type="text/css" media="all" href="./css/prettify.css"/>
@@ -40,8 +40,8 @@
<div class="xleft">
- <span id="publishDate">Last Published: 24 October 2013</span>
- | <span id="projectVersion">Version: 1.3.2</span>
+ <span id="publishDate">Last Published: 19 February 2014</span>
+ | <span id="projectVersion">Version: 1.4.0-SNAPSHOT</span>
</div>
<div class="xright"> <a href="http://www.apachecon.com/" class="externalLink" title="ApacheCon">ApacheCon</a>
|
@@ -217,13 +217,13 @@
<hr/>
</div>
<div id="footer">
- <div class="center">Copyright © 2001-2013
+ <div class="center">Copyright © 2001-2014
<a href="http://www.apache.org/">The Apache Software Foundation</a>.
All Rights Reserved.
</div>
-<div class="center">Apache Commons, Apache Commons Email, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
+<div class="center">Apache Commons, Apache Apache Commons Email, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
All other marks mentioned may be trademarks or registered trademarks of their respective owners.</div>
<div class="clear">
<hr/>