01: package org.claros.intouch.webmail.controllers;
02:
03: import org.claros.commons.mail.models.Email;
04: import org.claros.intouch.webmail.models.MsgDbObject;
05:
06: /**
07: * @author Umut Gokbayrak
08: */
09: public interface MailController {
10: public Email getEmailById(Long emailId) throws Exception;
11:
12: public void deleteEmail(Long emailId) throws Exception;
13:
14: public void deleteEmails(int msgs[]) throws Exception;
15:
16: public void moveEmail(Long msgId, String destFolder)
17: throws Exception;
18:
19: public void moveEmails(int msgs[], String destFolder)
20: throws Exception;
21:
22: public void appendEmail(MsgDbObject item) throws Exception;
23:
24: public void markAsRead(Long msgId) throws Exception;
25:
26: public void markAsDeleted(int[] ids) throws Exception;
27: }
|