}// TODO: setup a way for the mail notification to show up when someone receives mail when they were offline
}
publicbooleandeleteMail(intmailId){
Mailmessage=getMail(mailId);
if(message!=null){
intindex=getMailId(message);
message.expireTime=(int)Instant.now().getEpochSecond();// Just set the mail as expired for now. I don't want to implement a counter specifically for an account...