mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Related attachments
This commit is contained in:
@@ -76,6 +76,7 @@ public class EntityAttachment {
|
||||
public String type;
|
||||
public String disposition;
|
||||
public String cid; // Content-ID
|
||||
public Boolean related; // inline
|
||||
public Integer encryption;
|
||||
public Long size;
|
||||
public Integer progress;
|
||||
@@ -86,7 +87,8 @@ public class EntityAttachment {
|
||||
// Gmail sends inline images as attachments with a name and cid
|
||||
|
||||
boolean isInline() {
|
||||
return (Part.INLINE.equals(disposition) || cid != null);
|
||||
return (Part.INLINE.equals(disposition) ||
|
||||
(!Boolean.FALSE.equals(related) && cid != null));
|
||||
}
|
||||
|
||||
boolean isAttachment() {
|
||||
|
||||
Reference in New Issue
Block a user