Always specify charset for email addresses

This commit is contained in:
M66B
2020-07-10 10:07:53 +02:00
parent 900348b9d8
commit af45824fd8
6 changed files with 14 additions and 10 deletions

View File

@@ -38,6 +38,7 @@ import org.json.JSONException;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.Date;
import java.util.List;
@@ -312,7 +313,7 @@ public class ServiceUI extends IntentService {
reply.inreplyto = ref.msgid;
reply.thread = ref.thread;
reply.to = ref.from;
reply.from = new Address[]{new InternetAddress(identity.email, identity.name)};
reply.from = new Address[]{new InternetAddress(identity.email, identity.name, StandardCharsets.UTF_8.name())};
reply.subject = getString(R.string.title_subject_reply, subject);
reply.received = new Date().getTime();
reply.seen = true;