类 EmailController


  • @RestController("standardEmailController")
    @RequestMapping("/api/standard/email")
    public class EmailController
    extends Object
    • 构造器详细资料

      • EmailController

        public EmailController()
    • 方法详细资料

      • delete

        @DeleteMapping
        public net.risesoft.pojo.Y9Result<Object> delete​(@RequestParam("uids")
                                                         long[] uids,
                                                         String folder)
                                                  throws javax.mail.MessagingException
        删除邮件
        参数:
        uids - 邮件 uid
        folder - 文件夹
        返回:
        Y9Result<Object>
        抛出:
        javax.mail.MessagingException - 通讯异常
      • deletePermanently

        @DeleteMapping("/permanently")
        public net.risesoft.pojo.Y9Result<Object> deletePermanently​(@RequestParam("uids")
                                                                    long[] uids,
                                                                    String folder)
                                                             throws javax.mail.MessagingException
        永久删除邮件
        参数:
        uids - 邮件 uid
        folder - 文件夹
        返回:
        Y9Result<Object>
        抛出:
        javax.mail.MessagingException - 通讯异常
      • detail

        @GetMapping("/{folder}/{uid}")
        public net.risesoft.pojo.Y9Result<EmailDetailDTO> detail​(@PathVariable
                                                                 String folder,
                                                                 @PathVariable
                                                                 long uid)
                                                          throws Exception
        邮件详情
        参数:
        folder - 文件夹
        uid - 邮件 uid
        返回:
        Y9Result<EmailDetailDTO>
        抛出:
        Exception - 异常
      • exportEml

        @GetMapping("/exportEml")
        public void exportEml​(String folder,
                              int uid,
                              javax.servlet.http.HttpServletResponse response,
                              javax.servlet.http.HttpServletRequest request)
                       throws javax.mail.MessagingException,
                              IOException
        导出邮件 eml
        参数:
        folder - 文件夹
        uid - 邮件 uid
        response - 响应
        request - 请求
        抛出:
        javax.mail.MessagingException - 通讯异常
        IOException - IO异常
      • flag

        @PostMapping("/flag")
        public net.risesoft.pojo.Y9Result<Object> flag​(@RequestParam("uids")
                                                       long[] uids,
                                                       @RequestParam
                                                       String folder,
                                                       boolean flagged)
                                                throws Exception
        邮件标星
        参数:
        uids - 邮件 uid
        folder - 文件夹
        flagged - 是否标星
        返回:
        Y9Result<Object>
        抛出:
        Exception - 异常
      • forward

        @GetMapping("/forward/{folder}/{uid}")
        public net.risesoft.pojo.Y9Result<EmailDTO> forward​(@PathVariable
                                                            String folder,
                                                            @PathVariable
                                                            long uid)
                                                     throws Exception
        转发邮件
        参数:
        uid - 消息 uid
        folder - 文件夹
        返回:
        Y9Result<EmailDTO>
        抛出:
        Exception - 异常
      • list

        @GetMapping("/list")
        public net.risesoft.pojo.Y9Page<EmailListDTO> list​(int page,
                                                           @RequestParam
                                                           int size,
                                                           @RequestParam(required=false)
                                                           String folder)
                                                    throws IOException,
                                                           javax.mail.MessagingException
        根据文件夹分页查找邮件列表
        参数:
        page - 页数
        size - 每页数量
        folder - 文件夹
        返回:
        Y9Page<EmailListDTO>
        抛出:
        IOException - IO异常
        javax.mail.MessagingException - 通讯异常
      • move

        @PostMapping("/move")
        public net.risesoft.pojo.Y9Result<Object> move​(@RequestParam("uids")
                                                       long[] uids,
                                                       String originFolder,
                                                       String toFolder)
                                                throws javax.mail.MessagingException
        移动邮件
        参数:
        uids - 邮件 uid
        originFolder - 原始文件夹
        toFolder - 移动至文件夹
        返回:
        Y9Result<Object>
        抛出:
        javax.mail.MessagingException - 通讯异常
      • read

        @PostMapping("/read")
        public net.risesoft.pojo.Y9Result<Object> read​(@RequestParam("uids")
                                                       long[] uids,
                                                       @RequestParam
                                                       String folder,
                                                       @RequestParam
                                                       Boolean isRead)
                                                throws Exception
        标记为已读或未读
        参数:
        uids - 邮件 uid
        folder - 文件夹
        isRead - 是否已读
        返回:
        Y9Result<Object>
        抛出:
        Exception - 异常信息
      • reply

        @GetMapping("/reply/{folder}/{uid}")
        public net.risesoft.pojo.Y9Result<EmailDTO> reply​(@PathVariable
                                                          String folder,
                                                          @PathVariable
                                                          Long uid)
                                                   throws Exception
        回复
        参数:
        uid - 邮件 uid
        folder - 文件夹
        返回:
        Y9Result<EmailDTO>
        抛出:
        Exception - 异常消息
      • quickReply

        @PostMapping("/quickReply/{folder}/{uid}")
        public net.risesoft.pojo.Y9Result<EmailDTO> quickReply​(@PathVariable
                                                               String folder,
                                                               @PathVariable
                                                               Long uid,
                                                               @RequestParam
                                                               String richText)
                                                        throws Exception
        快速回复
        参数:
        folder - 文件夹
        uid - uid
        richText - 回复内容
        返回:
        Y9Result<EmailDTO>
        抛出:
        Exception - 异常
      • replyAll

        @GetMapping("/replyAll/{folder}/{uid}")
        public net.risesoft.pojo.Y9Result<EmailDTO> replyAll​(@PathVariable
                                                             String folder,
                                                             @PathVariable
                                                             Long uid)
                                                      throws Exception
        回复不包括自己和密送的其他所有收件人
        参数:
        uid - 邮件 uid
        folder - 文件夹
        返回:
        Y9Result<EmailDTO>
        抛出:
        Exception - 异常
        另请参阅:
        Exception
      • save

        @PostMapping
        public net.risesoft.pojo.Y9Result<String> save​(EmailDTO email)
                                                throws Exception
        保存邮件
        参数:
        email - 邮件
        返回:
        Y9Result<String>
        抛出:
        Exception - 异常
        另请参阅:
        Exception
      • search

        @GetMapping("/search")
        public net.risesoft.pojo.Y9Page<EmailListDTO> search​(EmailSearchDTO searchDTO)
                                                      throws javax.mail.MessagingException,
                                                             IOException
        搜索邮件
        参数:
        searchDTO - 搜索dto
        返回:
        Y9Page<EmailListDTO>
        抛出:
        javax.mail.MessagingException - 接收异常
        IOException - IO异常
      • send

        @PostMapping("/send")
        public net.risesoft.pojo.Y9Result<Object> send​(String messageId)
                                                throws Exception
        发送邮件
        参数:
        messageId - 消息id
        返回:
        Y9Result<Object>
        抛出:
        Exception - 异常
      • todoList

        @GetMapping("/todoList")
        public net.risesoft.pojo.Y9Result<Object> todoList()
                                                    throws javax.mail.MessagingException
        待办数量列表
        返回:
        Y9Result<Object>
        抛出:
        javax.mail.MessagingException - 通讯异常
      • contactPerson

        @ResponseBody
        @RequestMapping("/contact")
        public net.risesoft.pojo.Y9Result<Object> contactPerson()
                                                         throws javax.mail.MessagingException,
                                                                IOException
        最近联系人列表
        返回:
        Y9Result<Object>
        抛出:
        javax.mail.MessagingException - 接收异常
        IOException - IO异常
      • addressRelevancy

        @GetMapping("/addressRelevancy")
        public net.risesoft.pojo.Y9Result<Object> addressRelevancy​(String search)
        邮件地址/姓名 关联
        参数:
        search - 邮件地址/姓名
        返回:
        Y9Result<Object>