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 headers = 
"";
 
   40     private String textBody = 
"";
 
   41     private String htmlBody = 
"";
 
   42     private String rtfBody = 
"";
 
   43     private String localPath = 
"";
 
   44     private boolean hasAttachment = 
false;
 
   45     private long sentDate = 0L;
 
   46     private List<Attachment> attachments = 
new ArrayList<>();
 
   47     private long id = -1L;
 
   49     boolean hasAttachment() {
 
   53     String getRecipients() {
 
   57     void setRecipients(String recipients) {
 
   58         if (recipients != null) {
 
   59             this.recipients = recipients;
 
   67     void setSender(String sender) {
 
   77     void setSubject(String subject) {
 
   78         if (subject != null) {
 
   79             this.subject = subject;
 
   87     void setHeaders(String headers) {
 
   88         if (headers != null) {
 
   89             this.headers = headers;
 
   92     String getTextBody() {
 
   96     void setTextBody(String textBody) {
 
   97         if (textBody != null) {
 
   98             this.textBody = textBody;
 
  102     String getHtmlBody() {
 
  106     void setHtmlBody(String htmlBody) {
 
  107         if (htmlBody != null) {
 
  108             this.htmlBody = htmlBody;
 
  112     String getRtfBody() {
 
  116     void setRtfBody(String rtfBody) {
 
  117         if (rtfBody != null) {
 
  118             this.rtfBody = rtfBody;
 
  126     void setSentDate(Date sentDate) {
 
  127         if (sentDate != null) {
 
  128             this.sentDate = sentDate.getTime() / 1000;
 
  132     void setSentDate(
long sentDate) {
 
  133         this.sentDate = sentDate;
 
  140     void setBcc(String bcc) {
 
  150     void setCc(String cc) {
 
  156     void addAttachment(Attachment a) {
 
  158         hasAttachment = 
true;
 
  161     List<Attachment> getAttachments() {
 
  169     void setId(
long id) {
 
  173     String getLocalPath() {
 
  177     void setLocalPath(String localPath) {
 
  178         if (localPath != null) {
 
  179             this.localPath = localPath;
 
  190     static class Attachment {
 
  192         private String name = 
"";
 
  194         private String localPath = 
"";
 
  196         private long size = 0L;
 
  198         private long crTime = 0L;
 
  200         private long cTime = 0L;
 
  202         private long aTime = 0L;
 
  204         private long mTime = 0L;
 
  206         private TskData.EncodingType encodingType = TskData.EncodingType.NONE;
 
  212         void setName(String name) {
 
  218         String getLocalPath() {
 
  222         void setLocalPath(String localPath) {
 
  223             if (localPath != null) {
 
  224                 this.localPath = localPath;
 
  232         void setSize(
long size) {
 
  240         void setCrTime(
long crTime) {
 
  241             this.crTime = crTime;
 
  244         void setCrTime(Date crTime) {
 
  245             if (crTime != null) {
 
  246                 this.crTime = crTime.getTime() / 1000;
 
  254         void setcTime(
long cTime) {
 
  258         void setcTime(Date cTime) {
 
  260                 this.cTime = cTime.getTime() / 1000;
 
  268         void setaTime(
long aTime) {
 
  272         void setaTime(Date aTime) {
 
  274                 this.aTime = aTime.getTime() / 1000;
 
  282         void setmTime(
long mTime) {
 
  286         void setmTime(Date mTime) {
 
  288                 this.mTime = mTime.getTime() / 1000;
 
  292         void setEncodingType(TskData.EncodingType encodingType){
 
  293             this.encodingType = encodingType;
 
  296         TskData.EncodingType getEncodingType(){