IMAP:如何将邮件从一个文件夹移动到另一个文件夹 [英] IMAP: how to move a message from one folder to another

查看:385
本文介绍了IMAP:如何将邮件从一个文件夹移动到另一个文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(使用IMAP命令,而不借助任何其他邮件包)

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

推荐答案

我不确定您对imap的了解程度如何,但是基本上在登录后,选择"源邮箱,复制"消息,然后删除"邮件(如果旧邮箱现在为空,则删除"旧邮箱:-).

I'm not sure how well-versed you are in imap-speak, but basically after login, "SELECT" the source mailbox, "COPY" the messages, and "EXPUNGE" the messages (or "DELETE" the old mailbox if it is empty now :-).

a login a s
b select source
c copy 1 othermbox
d store 1 +flags (\Deleted)
e expunge

将是要发送的消息的示例. (注意:imap消息在每个命令之前都需要一个uniqe前缀,因此,前面应是"a b c")

would be an example of messages to send. (Note: imap messages require a uniqe prefix before each command, thus the "a b c" in front)

有关详细信息,请参见 RFC 2060 .

See RFC 2060 for details.

这篇关于IMAP:如何将邮件从一个文件夹移动到另一个文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆