Mail.app中IMAP帐户的默认特殊文件夹名称是什么(例如草稿,垃圾邮件,已发送)?


11

我正在设置自己的电子邮件服务器。客户端将使用IMAP连接到该服务器。

如今,可以将服务器上正确的“特殊”文件夹映射到本地客户端(例如“草稿”,“垃圾邮件”和“已发送”)。但是,由于连接到我的服务器的大多数设备都将使用Mail.app(或iOS上的Mail),如果服务器上的默认文件夹名称与Mail.app使用的名称相对应,那就很好了(所以我不不必在所有设备上重新映射文​​件夹)。

因此,我的问题是:默认情况下,Mail.app使用的特殊文件夹名称是什么?

Answers:


13

互联网工程任务组(IETF)在适当的RFC中定义了RFC 6154。您可以在其中找到特殊用途的邮箱面额列表:

   \All
      This mailbox presents all messages in the user's message store.
      Implementations MAY omit some messages, such as, perhaps, those
      in \Trash and \Junk.  When this special use is supported, it is
      almost certain to represent a virtual mailbox.

   \Archive
        This mailbox is used to archive messages.  The meaning of an
        "archival" mailbox is server-dependent; typically, it will be
        used to get messages out of the inbox, or otherwise keep them
        out of the user's way, while still making them accessible.

   \Drafts
        This mailbox is used to hold draft messages -- typically,
        messages that are being composed but have not yet been sent.  In
        some server implementations, this might be a virtual mailbox,
        containing messages from other mailboxes that are marked with
        the "\Draft" message flag.  Alternatively, this might just be
        advice that a client put drafts here.

   \Flagged
        This mailbox presents all messages marked in some way as
        "important".  When this special use is supported, it is likely
        to represent a virtual mailbox collecting messages (from other
        mailboxes) that are marked with the "\Flagged" message flag.

   \Junk
        This mailbox is where messages deemed to be junk mail are held.
        Some server implementations might put messages here
        automatically.  Alternatively, this might just be advice to a
        client-side spam filter.

   \Sent
        This mailbox is used to hold copies of messages that have been
        sent.  Some server implementations might put messages here
        automatically.  Alternatively, this might just be advice that a
        client save sent messages here.

   \Trash
        This mailbox is used to hold messages that have been deleted or
        marked for deletion.  In some server implementations, this might
        be a virtual mailbox, containing messages from other mailboxes
        that are marked with the "\Deleted" message flag.
        Alternatively, this might just be advice that a client that
        chooses not to use the IMAP "\Deleted" model should use this as
        its trash location.  In server implementations that strictly
        expect the IMAP "\Deleted" model, this special use is likely not
        to be supported.

2
###最相关的答案应该是符合标准的>我没有足够的声誉来投票或评论,但是此答案Norman Schmidt应该是被接受的答案。

11

我创建了一个空的IMAP帐户,并将其添加到运行OS X Mountain Lion的Mac上的Mail.app和Notes.app中。保存一些消息后,所有默认文件夹均由Mail.app创建。然后,我使用终端连接到IMAP服务器,并列出了所有文件夹:

A1 LIST "" "%"
* LIST (\HasNoChildren) "." "Sent Messages"
* LIST (\HasNoChildren) "." "Junk"
* LIST (\HasNoChildren) "." "Archive"
* LIST (\HasNoChildren) "." "Deleted Messages"
* LIST (\HasNoChildren) "." "Notes"
* LIST (\HasNoChildren) "." "Drafts"
* LIST (\HasNoChildren) "." "INBOX"
A1 OK List completed.

如您在原始输出中看到的,确切的默认文件夹名称如下:

  • 收件箱
  • 草稿
  • 发送信息
  • 垃圾
  • 已删除的讯息
  • 封存
  • 笔记

更新我的电子邮件服务器以默认为新的IMAP帐户创建这些文件夹后,我将一个新帐户连接到了Mac。正如希望的那样,iOS上的Mail.app和Mail自动使用了这些特殊文件夹(我只需要在Mac上启用“在服务器上存储垃圾邮件”)。


对于也使用Dovecot的用户,这是生成的配置文件,其中包含默认文件夹(/etc/dovecot/conf.d/15-mailboxes.conf):

namespace inbox {
  mailbox Drafts {
    auto = subscribe
    special_use = \Drafts
  }

  mailbox "Sent Messages" {
    auto = subscribe
    special_use = \Sent
  }

  mailbox Junk {
    auto = subscribe
    special_use = \Junk
  }

  mailbox "Deleted Messages" {
    auto = subscribe
    special_use = \Trash
  }

  mailbox Archive {
    auto = subscribe
    special_use = \Archive
  }

  mailbox Notes {
    auto = subscribe
  }
}
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.