mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 08:08:16 +02:00
Always specify charset for email addresses
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user