File tree Expand file tree Collapse file tree 5 files changed +17
-10
lines changed
src/main/java/org/simplejavamail/email Expand file tree Collapse file tree 5 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 11[ ![ APACHE v2 License] ( https://img.shields.io/badge/license-apachev2-blue.svg?style=flat )] ( LICENSE-2.0.txt )
22[ ![ Latest Release] ( https://img.shields.io/maven-central/v/org.simplejavamail/simple-java-mail.svg?style=flat )] ( https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.simplejavamail%22%20AND%20a%3A%22simple-java-mail%22 )
3- [ ![ Javadocs] ( https://img.shields.io/badge/javadoc-5.3 .0-brightgreen.svg?color=brightgreen )] ( https://www.javadoc.io/doc/org.simplejavamail/simple-java-mail )
3+ [ ![ Javadocs] ( https://img.shields.io/badge/javadoc-5.4 .0-brightgreen.svg?color=brightgreen )] ( https://www.javadoc.io/doc/org.simplejavamail/simple-java-mail )
44[ ![ Build Status] ( https://img.shields.io/travis/bbottema/simple-java-mail.svg?style=flat )] ( https://travis-ci.org/bbottema/simple-java-mail )
55[ ![ Codacy] ( https://img.shields.io/codacy/9f142ca8c8c640c984835a8ae02d29f3.svg?style=flat )] ( https://www.codacy.com/app/b-bottema/simple-java-mail )
66[ ![ Paypal Donate] ( https://img.shields.io/badge/donate%20with-paypal-blue.svg?style=flat )] ( https://paypal.me/bennybottema )
@@ -69,13 +69,13 @@ Simple Java Mail is available in [Maven Central](https://search.maven.org/#searc
6969<dependency >
7070 <groupId >org.simplejavamail</groupId >
7171 <artifactId >simple-java-mail</artifactId >
72- <version >5.3 .0</version >
72+ <version >5.4 .0</version >
7373</dependency >
7474```
7575
7676### Latest Progress ###
7777
78- [ v5.4.0] ( https://search.maven.org/#artifactdetails%7Corg.simplejavamail%7Csimple-java-mail%7C5.4.0%7Cjar ) (27? -August-2019)
78+ [ v5.4.0] ( https://search.maven.org/#artifactdetails%7Corg.simplejavamail%7Csimple-java-mail%7C5.4.0%7Cjar ) (28 -August-2019)
7979
8080- [ #221 ] ( https://github.com/bbottema/simple-java-mail/issues/221 ) API bugfix: server identity verification should not be tied to host trusting
8181- [ #226 ] ( https://github.com/bbottema/simple-java-mail/issues/226 ) Bug fix: Attachments with spaces in name are not handled properly
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ http://www.simplejavamail.org
33<dependency>
44 <groupId>org.simplejavamail</groupId>
55 <artifactId>simple-java-mail</artifactId>
6- <version>5.3 .0</version>
6+ <version>5.4 .0</version>
77</dependency>
88
9- v5.4.0 (27? -August-2019)
9+ v5.4.0 (28 -August-2019)
1010
1111- #221: API bugfix: server identity verification should not be tied to host trusting
1212- #226: Bug fix: Attachments with spaces in name are not handled properly
Original file line number Diff line number Diff line change 77 <artifactId >simple-java-mail</artifactId >
88 <packaging >jar</packaging >
99 <name >Simple Java Mail</name >
10- <version >5.4.0-SNAPSHOT </version >
10+ <version >5.4.0</version >
1111 <description >Simple API, Complex Emails. A light weight wrapper for the JavaMail SMTP API</description >
1212 <url >http://http://www.simplejavamail.org/</url >
1313
Original file line number Diff line number Diff line change 1919 * @see DataSource
2020 */
2121public class AttachmentResource implements Serializable {
22-
22+
23+ private static final long serialVersionUID = 1234567L ;
24+
2325 /**
2426 * @see #AttachmentResource(String, DataSource)
2527 */
@@ -28,7 +30,8 @@ public class AttachmentResource implements Serializable {
2830 /**
2931 * @see #AttachmentResource(String, DataSource)
3032 */
31- private final DataSource dataSource ;
33+ // data source is not serializable, so transient
34+ private transient final DataSource dataSource ;
3235
3336 /**
3437 * Constructor; initializes the attachment resource with a name and data.
Original file line number Diff line number Diff line change 2020@ SuppressWarnings ("SameParameterValue" )
2121public class Email implements Serializable {
2222
23+ private static final long serialVersionUID = 1234567L ;
24+
2325 /**
2426 * @see EmailPopulatingBuilder#fixingMessageId(String)
2527 */
@@ -105,12 +107,14 @@ public class Email implements Serializable {
105107 /**
106108 * @see EmailBuilder#forwarding(MimeMessage)
107109 */
108- private final MimeMessage emailToForward ;
110+ // mime message is not serializable, so transient
111+ private transient final MimeMessage emailToForward ;
109112
110113 /**
111114 * @see EmailPopulatingBuilder#signWithDomainKey(InputStream, String, String)
112115 */
113- private InputStream dkimPrivateKeyInputStream ;
116+ // mime message is not serializable, so transient
117+ private transient InputStream dkimPrivateKeyInputStream ;
114118
115119 /**
116120 * @see EmailPopulatingBuilder#signWithDomainKey(File, String, String)
You can’t perform that action at this time.
0 commit comments