laravel-gmail
laravel-gmail copied to clipboard
Update Replyable.php to fix threading when reply
Hi I have used your package to make a complete gmail mailbox. From my experience, some changes will make this repo even more better.
-
When a email has been replied, the emails are not grouped together as a thread in the receivers mailbox. This is because 'In-Reply-To' header should be set to 'Message-ID' header of the email that is being replied. Currently it is set to 'In-Reply-To' header of the parent email. so if that header exists, current reply is occuring on parent emails 'In-reply-To' message. if that header does not exist, it creates a separate thread.
-
'Message-ID' header is not consistent through all emails in gmail. But one of either 'Message-ID' or 'Message-Id' header is always present. So added a function to get consistent 'Message-ID' header.