Cortex XSOAR Mail_Listener not fetching emails

Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cortex XSOAR Mail_Listener not fetching emails

L0 Member

I'm having a problem with the Mail_Listener instance, it shows an error on fetch-incidents function :


2021-08-04 10:37:56.8945 error Failed to run script: Mail Listener v2_fetch-incidents with image: demisto/imap: [error '
Error: [Traceback (most recent call last):
   File "<string>", line 441, in <module>
   File "<string>", line 437, in main
   File "<string>", line 6042, in return_error
 Exception: Failed to execute fetch-incidents command. Error: decoding to str: need a bytes-like object, Header found
] (2604)'] (source: /builds/gopath/src/ 

Community Team Member

Hi @Anass_Baalal ,


In order to get better traction for this, I have moved it to the Cortex XSOAR area.
I would recommend that you visit the Cortex XSOAR discussions area to see your discussion and others there and to create any other new discussions on the topic there.




LIVEcommunity team member, CISSP
Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.

L0 Member

This Email Communication pack enables security teams to reply to an email as part of an incident. The SOC team is able to communicate directly through the Cortex XSOAR platform as part of the remediation process.


  • 2 replies
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!