Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#43: Add 'Properties' ctors for Inbox/Outbox #44

Merged
merged 1 commit into from
Apr 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
*.iws
*.class
/.idea/
/.tmp/
/.tmp/
*.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ public final class JavaxMailInbox implements Inbox {
*/
private final Modes modes;

/**
* Ctor.
* @param props The mail server connection properties.
*/
public JavaxMailInbox(final Properties props) {
this(() -> props);
}

/**
* Ctor.
* @param props The mail server connection properties.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
* objects in accordance with RFC822 syntax.
*
* @since 0.1.0
* @todo #/DEV Change the email to LowLevel case in order to prevent duplication of emails
* due to different case.
*/
public final class Addresses implements Scalar<InternetAddress[]> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ public class JavaxMailOutbox implements Outbox {
*/
private final Scalar<Session> session;

/**
* Ctor.
* @param props The postman configuration properties.
*/
public JavaxMailOutbox(final Properties props) {
this(() -> props);
}

/**
* Ctor.
* @param props The postman configuration properties.
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/io/github/dgroup/mbox4j/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
* The postman(s) for email sending.
*
* @since 0.1.0
* @todo #/DEV Add instructions to readme.md regarding <em>javax.mail</em>
* dependency (or other libs) in order to avoid java.lang.NoClassDefFoundError.
*/
package io.github.dgroup.mbox4j;
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
* Gmail incoming/outgoing SMTP server properties.
*
* @since 0.1.0
* @todo #/DEV Move the smtp properties to the src/main/java module
* as it can be used for other repositories.
* The new package is <em>io.github.dgroup.mbox4j.properties</em>.
*/
public final class GmailSmtpProperties implements Scalar<Properties> {

Expand Down