Package com.easydesk.web.service
Class MailReportService
java.lang.Object
com.easydesk.web.service.MailReportService
메일 현황(MailReport 화면) - Gmail 메일함을 IMAP 으로 읽어 발송 / 수신 목록을 만든다.
- 발송 현황 : Gmail 의 "보낸편지함". Gmail 은 계정 언어에 따라 폴더 이름이 바뀌므로
("[Gmail]/Sent Mail", "[Gmail]/보낸편지함" ...) 이름이 아니라 IMAP SPECIAL-USE 속성
\Sent로 찾는다. - 수신 현황 : INBOX.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum메일함 종류.static final record메일함 한 페이지.static final record화면에 필요한 두 메일함.static final record목록 한 줄. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanload(int sentPage, int inboxPage) 보낸편지함과 받은편지함을 한 번의 IMAP 접속으로 읽는다.
-
Constructor Details
-
MailReportService
public MailReportService()
-
-
Method Details
-
isConfigured
public boolean isConfigured()- Returns:
- IMAP 접속 계정 / 비밀번호가 설정되어 있는지
-
getAccount
- Returns:
- 접속 계정 (화면 표시용)
-
load
보낸편지함과 받은편지함을 한 번의 IMAP 접속으로 읽는다.- Parameters:
sentPage- 보낸편지함 페이지 (1 부터)inboxPage- 받은편지함 페이지 (1 부터)- Throws:
MessagingException
-