是否可以有两个同名的邮箱(文件夹)?
Is it possible to have two mailboxes(folders) with same name?
我正在开发一个产品,我必须通过 IMAP 与电子邮件服务器(如 zimbra、dovecot 等)交互以获取电子邮件等。
我正在使用 Python 的 imaplib 库。我使用凭据连接到电子邮件服务器帐户,然后通过其名称 select 一个邮箱(文件夹)。
现在我想知道是否可以在一个帐户中有两个同名邮箱?如果是那么怎么办?
Question: I am probably unclear on this.
使用 select(mailbox=...
您正在处理 真实文件夹。
因此不可能重复。
IMAP4.select(mailbox=’INBOX’, readonly=False)
Select a mailbox.
Returned data is the count of messages in mailbox (EXISTS response).
The default mailbox is 'INBOX'.
If the readonly flag is set, modifications to the mailbox are not allowed.
我正在开发一个产品,我必须通过 IMAP 与电子邮件服务器(如 zimbra、dovecot 等)交互以获取电子邮件等。
我正在使用 Python 的 imaplib 库。我使用凭据连接到电子邮件服务器帐户,然后通过其名称 select 一个邮箱(文件夹)。
现在我想知道是否可以在一个帐户中有两个同名邮箱?如果是那么怎么办?
Question: I am probably unclear on this.
使用 select(mailbox=...
您正在处理 真实文件夹。
因此不可能重复。
IMAP4.select(mailbox=’INBOX’, readonly=False)
Select a mailbox.
Returned data is the count of messages in mailbox (EXISTS response).
The default mailbox is 'INBOX'.
If the readonly flag is set, modifications to the mailbox are not allowed.