Hello Wojtek,

Yes, +1

Ideal option would be to make this configurable in ImapConfiguration class (imapServer.properties) and have AbstractAuthProcessor reuse this configuration.

Please also create a JIRA ticket. If you do not have a JIRA account please request one: https://selfserve.apache.org/jira-account.html

--

Best regards,

*Benoit TELLIER*

General manager ofLinagora VIETNAM <https://linagora.vn/>.
Product owner forTeam-Mail <https://github.com/linagora/tmail-flutter>product.
Chairman of theApache James project <https://james.apache.org/>.

Mail:btell...@linagora.com
Tel: (0033) 6 77 25 04 58 (WhatsApp, Signal)

On 10/03/2023 05:32, Wojtek wrote:
Hi,
While accessing James via IMAP, only default INBOX mailbox is present. Some e-mail applications do create them on demand (Apple mail.app, but it's not quite strict when it comes to naming so other app's don't understand it), others like Thunderbird simply shows an error (Sent, Drafts).

I think it would be good to provision those mailboxes at the same time when INBOX is created (hook to single check for INBOX to avoid checking for each and every mailbox) in org.apache.james.imap.processor.AbstractAuthProcessor#provisionInbox method (https://github.com/apache/james-project/blob/24c49d5979447bfce1ef5f055f7b0a9449466a83/protocols/imap/src/main/java/org/apache/james/imap/processor/AbstractAuthProcessor.java#L135).

I coded it, and it seems to be working fine. Would and issue followed by PR be welcomed and possibly accepted?

Reply via email to