我正在使用带有 MySQL 数据库的 James server 3 beta 作为存储库来开发邮件客户端应用程序。我能够从应用程序发送/接收邮件。但我想将已发送电子邮件的副本存储在 James 服务器未提供的已发送邮件文件夹中。我是要自己创建“已发送邮件”文件夹,还是使用 James 服务器有其他解决方法?问候,
2 回答
You don't need to create the "Sent" folder. James will create it for every user. Only if you use maildir as repository, not a MySQL.
If you store the mails to a MySQL database then you should look for mails in the database. Look for table james_mailbox, and filter column mailbox_name to "Sent".
You can store the mails to a directory, then you will have access to all emails, not only sent. But remember, this feature is available only for Linux.
One more. The mailet ToSenderFolder should be present in conf/mailetcontainer.conf file.
已发送邮件文件夹没有什么神奇之处。您必须自己创建它并将消息显式复制到它。