本帖最后由 jimu 于 2016-12-7 15:29 编辑
- 从已发送移动邮件到 4444邮件夹
- C6 SELECT "Sent Items"
- ...
- C6 OK [READ-WRITE] SELECT completed
- C7 UID MOVE 1447414440 4444
- C7 BAD command not support
复制代码IAMP没有定义移动邮件的命令,移动操作相当于先把邮件复制到新邮箱中,然后对源邮箱中的邮件设置DELETED标志。下一次执行检查点过后,新邮箱中的邮件被删除,新邮件就被显示出来。
C22 SELECT 999 ... C22 OK [READ-WRITE] SELECT completed
C24 UID COPY 1447641805 4444 C24 OK COPY completed C25 UID STORE 1447641805 +FLAGS.SILENT (\Deleted)C25 OK STORE completed
C26 EXPUNGE
* 5 EXISTS
* 0 RECENT
* 4 EXPUNGE
C26 OK EXPUNGE completed
https://tools.ietf.org/html/rfc6851
A move function is not provided in the base IMAP specification, so clients have instead had to use a combination of the COPY, STORE, and EXPUNGE commands to perform this very common operation.
|