1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Fixed issue 499 by removing LocalMessage.setRecipients() method to use the super implementation instead.

Anyone knows why was this method overridden in the first place?
This commit is contained in:
Bao-Long Nguyen-Trong 2009-06-25 20:25:05 +00:00
parent b572c8e065
commit 99562b8e01

View File

@ -1658,22 +1658,6 @@ public class LocalStore extends Store implements Serializable {
}
}
public void setRecipients(RecipientType type, Address[] addresses) throws MessagingException {
if (type == RecipientType.TO) {
addHeader("To", Address.toString(addresses));
this.mTo = addresses;
} else if (type == RecipientType.CC) {
addHeader("CC", Address.toString(addresses));
this.mCc = addresses;
} else if (type == RecipientType.BCC) {
addHeader("BCC", Address.toString(addresses));
this.mBcc = addresses;
} else {
throw new MessagingException("Unrecognized recipient type.");
}
}
public void setFlagInternal(Flag flag, boolean set) throws MessagingException {
super.setFlag(flag, set);
}