How can I tell the JavaMail API where to create a mail folder on my IMAP server?
The JavaMail API, for an IMAP server, sends the IMAP command, to create a new folder, to the IMAP server. JavaMail does not create anything; the IMAP server creates the folder, when requested to by the JavaMail API's IMAP client commands.
And then it's up to the IMAP server, where it wants to create this new folder, given its own configuration, in the underlying local filesystem, for folder locations relative to users' home directories (e.g. "/path/to/user1/path/to/folder1").