Related attachments

This commit is contained in:
M66B
2022-02-12 20:39:49 +01:00
parent 0814865d0c
commit c95cc95994
7 changed files with 2759 additions and 20 deletions

View File

@@ -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() {