IMAP中电子邮件的UID,如果邮件被移动则不会更改 [英] UID of email in IMAP which does not change if mail get moved

查看:156
本文介绍了IMAP中电子邮件的UID,如果邮件被移动则不会更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定IMAP是否可行:

I am unsure if this is possible with IMAP:

  1. 收件箱中有一封特殊邮件.
  2. 邮件用户代理1看到此邮件
  3. 邮件用户代理2将邮件从收件箱"文件夹移至子文件夹"文件夹
  4. 邮件用户代理1要访问特定邮件.

AFAIK,IMAP中的ID总是相对于文件夹(规范称其为邮箱").

AFAIK the IDs in IMAP are always relative to the folder (the spec calls it "mailbox").

邮件用户代理1如何找到邮件的新位置?

How can Mail User Agent 1 find the new location of the mail?

推荐答案

通过其message-id搜索.message-id是一个标头字段,实际上,所有消息都有一个唯一的ID,因为它使用了很多.

Search by its message-id. The message-id is a header field, practically all messages have a unique id because it's used so much.

Imap允许您按标题字段(包括message-id字段)进行搜索.

Imap lets you search by header field, including the message-id field.

这篇关于IMAP中电子邮件的UID,如果邮件被移动则不会更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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