laravel-gmail icon indicating copy to clipboard operation
laravel-gmail copied to clipboard

Update Replyable.php to fix threading when reply

Open skn-036 opened this issue 2 years ago • 0 comments

Hi I have used your package to make a complete gmail mailbox. From my experience, some changes will make this repo even more better.

  1. 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.

  2. '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.

skn-036 avatar Jun 23 '22 17:06 skn-036