Class Draft

java.lang.Object
i2p.susi.webmail.Mail
i2p.susi.webmail.Draft

class Draft extends Mail
Holds a draft message and reference to attachments, if any Differences from Mail: - Never multipart, body is always text/plain UTF-8 - Attachments are just headers containing name, type, encoding, and path to file - Bcc is a header
Since:
0.9.35
  • Field Details

  • Constructor Details

    • Draft

      public Draft(String uidl)
  • Method Details

    • setBody

      public void setBody(Buffer rb)
      Overridden to process attachment and Bcc headers
      Overrides:
      setBody in class Mail
    • hasAttachment

      public boolean hasAttachment()
      Overrides:
      hasAttachment in class Mail
    • getBcc

      public String[] getBcc()
      Returns:
      may be null
    • getAttachments

      public List<Attachment> getAttachments()
      Returns:
      non-null, not a copy
    • addAttachment

      public int addAttachment(Attachment a)
    • removeAttachment

      public void removeAttachment(int index)
    • clearAttachments

      public void clearAttachments()
    • encodeAttachments

      public StringBuilder encodeAttachments()