IMAP-编辑草稿或现有邮件? [英] IMAP - editing a draft or existing message?

查看:110
本文介绍了IMAP-编辑草稿或现有邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于那些熟悉IMAP的人-如果我检索了草稿消息(或与此有关的任何消息),并且希望对其进行更新/编辑,则应该使用哪些命令?

For those of you familiar with IMAP - If I retrieve a draft message (or any message for that matter), and I wish to update it / edit it, what commands should I use?

我遇到的唯一命令是Append,它似乎只能插入,这意味着我必须从邮箱中删除以前的草稿?

The only command i've come across is Append, which appears to only insert, meaning I would have to delete the previous draft from the mailbox?

推荐答案

IMAP设计用于邮箱的服务器端管理,而不用于编辑邮件.因此,是的,您将必须检索所需消息的内容(FETCH),然后从服务器中删除该消息(消息上的STORE一个\Deleted标志,然后是EXPUNGE删除的消息),然后将更新的消息上载到服务器(APPEND).没有用于编辑现有消息内容的IMAP命令,仅用于更新与现有消息相关的标志(STORE).

IMAP is designed for server-side management of mailboxes, not for editing messages. So yes, you would have to retrieve the contents of the desired message (FETCH), then delete that message from the server (STORE a \Deleted flag on the message and then EXPUNGE deleted messages), and then upload the updated message to the server (APPEND). There are no IMAP commands for editing the contents of an existing message, only for updating flags related to existing messages (STORE).

这篇关于IMAP-编辑草稿或现有邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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