1 package org.columba.mail.message; 17 18 import java.util.List ; 19 20 import org.columba.ristretto.message.Attributes; 21 import org.columba.ristretto.message.Flags; 22 import org.columba.ristretto.message.Header; 23 24 25 35 public class SendableHeader extends ColumbaHeader { 36 public SendableHeader() { 37 super(); 38 } 39 40 public int getAccountUid() { 41 return ((Integer ) attributes.get("columba.accountuid")).intValue(); 42 } 43 44 50 public List getRecipients() { 51 return ((List ) attributes.get("columba.recipients")); 52 } 53 54 public void setAccountUid(int uid) { 55 attributes.put("columba.accountuid", new Integer (uid)); 56 } 57 58 public void setRecipients(List rcpt) { 59 attributes.put("columba.recipients", rcpt); 60 } 61 62 public Object clone() { 63 SendableHeader clone = new SendableHeader(); 64 clone.attributes = (Attributes) this.attributes.clone(); 65 clone.flags = (Flags) this.flags.clone(); 66 clone.header = (Header) this.header.clone(); 67 68 return clone; 69 } 70 } 71 | Popular Tags |