mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Plain text only with alt content
This commit is contained in:
@@ -181,7 +181,7 @@ public class EntityMessage implements Serializable {
|
||||
@NonNull
|
||||
public Boolean content = false;
|
||||
public String language = null; // classified
|
||||
public Boolean plain_only = null;
|
||||
public Integer plain_only = null; // 1=true; 0x80=alt
|
||||
public Boolean resend = null;
|
||||
public Integer encrypt = null;
|
||||
public Integer ui_encrypt = null;
|
||||
@@ -257,6 +257,14 @@ public class EntityMessage implements Serializable {
|
||||
return "<" + UUID.randomUUID() + "@" + domain + '>';
|
||||
}
|
||||
|
||||
boolean isPlainOnly() {
|
||||
return (this.plain_only != null && (this.plain_only & 1) != 0);
|
||||
}
|
||||
|
||||
boolean hasAlt() {
|
||||
return (this.plain_only != null && (this.plain_only & 0x80) != 0);
|
||||
}
|
||||
|
||||
boolean replySelf(List<TupleIdentityEx> identities, long account) {
|
||||
Address[] senders = (reply == null || reply.length == 0 ? from : reply);
|
||||
if (identities != null && senders != null)
|
||||
|
||||
Reference in New Issue
Block a user