Page 1 of 1

How do i change IMAP from Inbox to different folder.

Posted: Sat Aug 31, 2024 8:26 pm
by blanka
Hi,

How to I specify IMAP folder I want to use instead of deafult Inbox:

Code: Select all

[NONEXISTENT] SELECT failure: FOLDER Inbox IS NOT SELECTABLE
Thanks in advance.

Re: How do i change IMAP from Inbox to different folder.

Posted: Sun Sep 01, 2024 1:20 pm
by Klemen
Unfortunately, there is no built-in way to do that.

It may be possible do it by modifying the source code. I didn't test this and don't have time to do it properly, but perhaps this will work:

-----------------------------------------------------------

If you use OAuth:

1. backup existing Hesk files
2. open file /inc/mail/imap/OAuthIMAP.php in a powerful text editor, such as the free Notepad++
3. find all UPPERCASE instances of

Code: Select all

INBOX
4. change it to your mailbox name, for example

Code: Select all

HESKBOX
5. save, upload to the server and test

-----------------------------------------------------------

If you use Basic authentication:

1. backup existing Hesk files
2. open file /inc/mail/imap/HeskIMAP.php in a powerful text editor, such as the free Notepad++
3. find this code

Code: Select all

imap_timeout(IMAP_OPENTIMEOUT, $this->connectTimeout);
4. just above that code, add this (change HESKBOX to your mailbox name):

Code: Select all

$this->mailbox .= 'HESKBOX';
5. save, upload to the server and test

-----------------------------------------------------------

If the above makes no sense or doesn't work, you will likely need to hire a PHP developer for help.

Re: How do i change IMAP from Inbox to different folder.

Posted: Sun Sep 01, 2024 7:08 pm
by blanka
Did work, thanks!