Answers:
互联网工程任务组(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.
我创建了一个空的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
}
}
Norman Schmidt
应该是被接受的答案。