friendica/friendica — pull request #48 by abinoam (2012-02-26 01:42:00+00:00)
Title: Comment Notifications by Email - Threading Them

Mike,

This is my first more complex pull request.
It creates tables and other things.
I made it the most carefully as I could.
And I tried to document it and make a commit at a time so that the patch can be more self-explainable.
But, I would like you to take a close look at it before merging (or not merging).
(No hurry).

Basically:
1) Creates a table to store the "first" email in thread, which will be given a "Message-Id" smtp header, so that the next ones could "follow" it.
2) The other e-mails in thread gains a "References and a In-Reply-To" header, refering the former one.
3) I had to make the "mail subject" fix. Some mail software just can't believe a mail in the same thread can have different subjects. Mozilla Thunderbird make it correctly and didn't complain about... but Thunderbird was an exception.

I'll try to send a screenshot at Friendica.