From 2b0b929aa2af4caf65d6cdee84e83130dad29006 Mon Sep 17 00:00:00 2001 From: Andrew Chen Date: Fri, 7 Sep 2012 11:02:30 -0700 Subject: [PATCH] Add references and in-reply-to for forwarded messages. --- src/com/fsck/k9/activity/MessageCompose.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/com/fsck/k9/activity/MessageCompose.java b/src/com/fsck/k9/activity/MessageCompose.java index 91de68e19..3d177de80 100644 --- a/src/com/fsck/k9/activity/MessageCompose.java +++ b/src/com/fsck/k9/activity/MessageCompose.java @@ -2528,6 +2528,19 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc } mQuoteStyle = QuoteStyle.HEADER; + // "Be Like Thunderbird" - on forwarded messages, set the message ID + // of the forwarded message in the references and the reply to. TB + // only includes ID of the message being forwarded in the reference, + // even if there are multiple references. + if (!StringUtils.isNullOrEmpty(message.getMessageId())) { + mInReplyTo = message.getMessageId(); + mReferences = mInReplyTo; + } else { + if (K9.DEBUG) { + Log.d(K9.LOG_TAG, "could not get Message-ID."); + } + } + // Quote the message and setup the UI. populateUIWithQuotedMessage(true);