From dde6fa7162469c4c92e7d2b086976f6fe62503e4 Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Sun, 19 May 2024 17:50:21 +0000 Subject: [PATCH] tried to resolve problem with umlauts in subject Signed-off-by: Stephan Richter --- pom.xml | 2 +- src/main/java/de/srsoftware/widerhall/mail/SmtpClient.java | 4 ++-- static/templates/footer.st | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index cfdeefc..5bab660 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.example Widerhall - 1.0.4 + 1.0.5 diff --git a/src/main/java/de/srsoftware/widerhall/mail/SmtpClient.java b/src/main/java/de/srsoftware/widerhall/mail/SmtpClient.java index 5215bc8..9324175 100644 --- a/src/main/java/de/srsoftware/widerhall/mail/SmtpClient.java +++ b/src/main/java/de/srsoftware/widerhall/mail/SmtpClient.java @@ -52,10 +52,10 @@ public class SmtpClient { } if (newSender != null){ forward.setFrom(newSender); - forward.setSubject(subject+" (from "+oldSender+")"); + forward.setSubject(subject+" (from "+oldSender+")","utf-8"); } else { forward.setFrom(oldSender); - forward.setSubject(subject); + forward.setSubject(subject,"utf-8"); } if (replyTo != null) forward.setReplyTo(InternetAddress.parse(replyTo)); var recipientType = bcc ? Message.RecipientType.BCC : Message.RecipientType.TO; diff --git a/static/templates/footer.st b/static/templates/footer.st index 7dc53ac..fe4a2f8 100644 --- a/static/templates/footer.st +++ b/static/templates/footer.st @@ -1,5 +1,5 @@