19 package org.sleuthkit.autopsy.thunderbirdparser;
21 import java.util.ArrayList;
22 import java.util.Date;
23 import java.util.List;
34 private String recipients =
"";
35 private String bcc =
"";
36 private String cc =
"";
37 private String sender =
"";
38 private String subject =
"";
39 private String textBody =
"";
40 private String htmlBody =
"";
41 private String rtfBody =
"";
42 private String localPath =
"";
43 private boolean hasAttachment =
false;
44 private long sentDate = 0L;
45 private List<Attachment> attachments =
new ArrayList<>();
46 private long id = -1L;
48 boolean hasAttachment() {
52 String getRecipients() {
56 void setRecipients(String recipients) {
57 if (recipients != null) {
58 this.recipients = recipients;
66 void setSender(String sender) {
76 void setSubject(String subject) {
77 if (subject != null) {
78 this.subject = subject;
82 String getTextBody() {
86 void setTextBody(String textBody) {
87 if (textBody != null) {
88 this.textBody = textBody;
92 String getHtmlBody() {
96 void setHtmlBody(String htmlBody) {
97 if (htmlBody != null) {
98 this.htmlBody = htmlBody;
102 String getRtfBody() {
106 void setRtfBody(String rtfBody) {
107 if (rtfBody != null) {
108 this.rtfBody = rtfBody;
116 void setSentDate(Date sentDate) {
117 if (sentDate != null) {
118 this.sentDate = sentDate.getTime() / 1000;
122 void setSentDate(
long sentDate) {
123 this.sentDate = sentDate;
130 void setBcc(String bcc) {
140 void setCc(String cc) {
146 void addAttachment(Attachment a) {
148 hasAttachment =
true;
151 List<Attachment> getAttachments() {
159 void setId(
long id) {
163 String getLocalPath() {
167 void setLocalPath(String localPath) {
168 if (localPath != null) {
169 this.localPath = localPath;
180 static class Attachment {
182 private String name =
"";
184 private String localPath =
"";
186 private long size = 0L;
188 private long crTime = 0L;
190 private long cTime = 0L;
192 private long aTime = 0L;
194 private long mTime = 0L;
202 void setName(String name) {
208 String getLocalPath() {
212 void setLocalPath(String localPath) {
213 if (localPath != null) {
214 this.localPath = localPath;
222 void setSize(
long size) {
230 void setCrTime(
long crTime) {
231 this.crTime = crTime;
234 void setCrTime(Date crTime) {
235 if (crTime != null) {
236 this.crTime = crTime.getTime() / 1000;
244 void setcTime(
long cTime) {
248 void setcTime(Date cTime) {
250 this.cTime = cTime.getTime() / 1000;
258 void setaTime(
long aTime) {
262 void setaTime(Date aTime) {
264 this.aTime = aTime.getTime() / 1000;
272 void setmTime(
long mTime) {
276 void setmTime(Date mTime) {
278 this.mTime = mTime.getTime() / 1000;
283 this.encodingType = encodingType;