IMAP: how to move a message from one folder to another

前端 未结 4 438
故里飘歌
故里飘歌 2020-12-28 16:44

(using the IMAP commands, not with the assistance of any other mail package)

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-28 17:23

    I guess you COPY the message to the new folder and then delete (EXPUNGE) it in the old one.

    RFC3501

    HINT There's no DELETE command that does what you mean, you have to flag the message as deleted and then EXPUNGE the mailbox. Have a look at the RFC. Be careful with DELETE, as it deletes whole mailboxes, not single mails.

提交回复
热议问题