Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webklex\IMAP\Exceptions\GetMessagesFailedException : imap_fetchheader(): Bad message number #249

Closed
LeonAlvarez opened this issue Sep 16, 2019 · 1 comment

Comments

@LeonAlvarez
Copy link

Describe the bug

 Webklex\IMAP\Exceptions\GetMessagesFailedException  : imap_fetchheader(): Bad message number

  at /var/www/xxxx/vendor/webklex/laravel-imap/src/IMAP/Query/Query.php:223
    219|             }
    220| 
    221|             return $messages;
    222|         } catch (\Exception $e) {
  > 223|             throw new GetMessagesFailedException($e->getMessage());
    224|         }
    225|     }
    226| 
    227|     /**

  Exception trace:

  1   Webklex\IMAP\Query\Query::get()
      /var/www/xxx/app/Console/Commands/ParseEmailTicket.php:61

  2   App\Console\Commands\ParseEmailTicket::fetchMessages()
      /var/www/xxx/app/Console/Commands/ParseEmailTicket.php:32

To Reproduce
Using it with Outlook 365
I m not sure how to reproduce it, because it happens some times, tried different queries but result is the same.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop / Server (please complete the following information):

  • OS: Ubuntu 16.04
  • PHP: php7.2 laravel 5.8
  • Version dev-master

*Additional context

Same issue in previous package versions

@Webklex
Copy link
Owner

Webklex commented Sep 25, 2019

Hi @LeonAlvarez ,
thanks for your well formatted issue :)

Please try to change the message_key #243 and you might want to check out #189 . Outlook 365 is a little bit special ;)

@Webklex Webklex closed this as completed Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants