MCPcopy Create free account
hub / github.com/M66B/FairEmail / isTnef

Method isTnef

app/src/main/java/eu/faircode/email/Helper.java:1188–1199  ·  view source on GitHub ↗
(String type, String name)

Source from the content-addressed store, hash-verified

1186 }
1187
1188 static boolean isTnef(String type, String name) {
1189 // https://en.wikipedia.org/wiki/Transport_Neutral_Encapsulation_Format
1190 if ("application/ms-tnef".equals(type) ||
1191 "application/vnd.ms-tnef".equals(type))
1192 return true;
1193
1194 if ("application/octet-stream".equals(type) &&
1195 "winmail.dat".equalsIgnoreCase(name))
1196 return true;
1197
1198 return false;
1199 }
1200
1201 static void view(Context context, Intent intent) {
1202 Uri uri = intent.getData();

Callers 5

onExecuteMethod · 0.95
_shareMethod · 0.95
reportNoViewerMethod · 0.95
downloadAttachmentMethod · 0.95
decodeRfc822Method · 0.95

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected