Fix message threading: Closes #5489

This bug was caused by some faulty code that's been in for a while,
but it was exacerbated by the bcc: fix and the outbox.
This commit is contained in:
Jim Nelson 2012-07-12 18:37:11 -07:00
parent 510c68ea6f
commit 65f0513643
2 changed files with 31 additions and 18 deletions

View file

@ -152,6 +152,8 @@ public class Geary.ComposedEmail : Object {
private void set_reply_references(Geary.Email source) {
in_reply_to = source.message_id;
reply_to_email = source;
// generate list for References
Gee.ArrayList<RFC822.MessageID> list = new Gee.ArrayList<RFC822.MessageID>();
// 1. Start with the source's References list
@ -167,10 +169,7 @@ public class Geary.ComposedEmail : Object {
if (source.message_id != null)
list.add(source.message_id);
if (list.size > 0)
references = new RFC822.MessageIDList.from_list(list);
else
references = null;
references = (list.size > 0) ? new RFC822.MessageIDList.from_list(list) : null;
}
private Geary.RFC822.Subject create_subject_for_reply(Geary.Email email) {