我可以“使用 IMAP”并查看我的实际邮件配额吗?

我可以“使用 IMAP”并查看我的实际邮件配额吗?

我正在尝试解决令人沮丧的收件箱配额问题。Thunderbird 说我的收件箱已满 80%。我的 ISP 说不是。我们做了一些调整,我应该有 2G 可用(它曾经是“无限制”的)。不幸的是,Thunderbird 仍然报告说我在配额根“ROOT”上使用了 256000 KB 限制中的 206456 KB。

有没有命令行方法可以用来查明我的邮件主机告诉 Thunderbird 的内容?Mutt 能告诉我吗?

答案1

也许 Pythonimaplib库可以提供帮助。使用 从终端启动 Python 控制台python。然后,使用以下命令创建 IMAP 连接:

>>> import imaplib
>>> conn = imaplib.IMAP4('hostname')
>>> conn.login('username', 'password')

如果您的 IMAP 服务器使用 SSL,请使用IMAP4_SSL构造函数而不是IMAP4。然后您可以在连接上使用getquotaroot或方法。例如:getquota

>>> conn.getquotaroot('INBOX')
>>> conn.getquota('quota root') # using the root from the previous command

答案2

使用openssl :

openssl s_client -connect example.org:imap -starttls imap

然后在收到提示时登录:

a LOGIN [email protected] password

最后:

a GETQUOTA ""

相关内容