This question may be out of topic but I was wondering if there is any setting that removes "message-id" header from the incoming emails on the server?
Currently, I am using the following PHP library to receive read emails using IMAP but for some reason the message id is missing from all emails...