Skip to content

Commit

Permalink
Upgraded subethasmtp to the jakarta version
Browse files Browse the repository at this point in the history
  • Loading branch information
ophiuhus committed Oct 7, 2024
1 parent 15f5498 commit ce593f6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
4 changes: 2 additions & 2 deletions milton-mail-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.subethamail</groupId>
<artifactId>subethasmtp</artifactId>
<groupId>io.github.frshdn</groupId>
<artifactId>subethasmtp-java17</artifactId>
<version>3.1.7</version>
</dependency>
<dependency>
Expand Down
20 changes: 20 additions & 0 deletions milton-proxy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,31 @@
<groupId>${project.groupId}</groupId>
<artifactId>milton-server-ce</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.mail</groupId>
<artifactId>jakarta.mail</artifactId>
</exclusion>
<exclusion>
<artifactId>jakarta.activation</artifactId>
<groupId>com.sun.activation</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>milton-client</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import io.milton.davproxy.content.FolderHtmlContentGenerator;
import io.milton.httpclient.Folder;
import io.milton.httpclient.HttpException;
import io.milton.resource.Resource;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -67,7 +66,7 @@ public io.milton.resource.Resource adapt(String hostName, io.milton.httpclient.R

public void copyTo(io.milton.httpclient.Resource remoteResource, String destName, Folder destRemoteFolder) throws RuntimeException, ConflictException, BadRequestException, NotAuthorizedException {
try {
if (destName.equals(remoteResource.name)) { // this is the normal case, copy with no rename
if (destName.equals(remoteResource.name)) { // this is the normal case, copy with no rename
remoteResource.copyTo(destRemoteFolder);
} else { // its possible to request a copy with a new name
remoteResource.copyTo(destRemoteFolder, destName);
Expand All @@ -81,7 +80,7 @@ public void copyTo(io.milton.httpclient.Resource remoteResource, String destName

public void moveTo(io.milton.httpclient.Resource remoteResource, String destName, Folder destRemoteFolder) throws NotAuthorizedException, ConflictException, BadRequestException {
try {
if (destName.equals(remoteResource.name)) { // this is the normal case, move with no rename
if (destName.equals(remoteResource.name)) { // this is the normal case, move with no rename
remoteResource.moveTo(destRemoteFolder);
} else { // its possible to request a copy with a new name
remoteResource.moveTo(destRemoteFolder, destName);
Expand Down

0 comments on commit ce593f6

Please sign in to comment.