10 Dec 2023, 21:57

Hello,

I followed this guide to setup my mailbox: https://www.uvdesk.com/en/blog/setup-gmail-mailbox-uvdesk-open-source-helpdesk/ but when I try to run the php command that should refresh the mailbox and create the tickets I get the following output:

php bin/console uvdesk:refresh-mailbox support_mailbox@domain.ext

# Retrieving mailbox configuration details for support_mailbox@domain.ext:

  - Establishing connection with mailbox
  - Fetching all emails since 09 December 2023
  - Found a total of 1 emails in mailbox since 09 December 2023

  # Processing all found emails iteratively:

    API https://uvdesk.example.com/mailbox/listener

    - Processing email 1 of 1:
  An unexpected error occurred: Warning: Trying to access array offset on value of type null

It seems that it connects to the mailbox just fine, retrieves the emails just fine but has trouble creating the tickets.
Yes the specified mailbox contains just one email which is a test email. It should be imported and made into a ticket.
So the 1 of 1 part is correct.
I sent a second one, and same deal. processint email 1 of 2 and then ... error.

The emails in the mailbox are marked as "read" when I run the php command. Which means it's not a credentials issue.

I see that API https://uvdesk.example.com/mailbox/listener
What is this? Should I have enabled the API so that uvdesk can process icomming emails?
Something else?