diff --git a/README.md b/README.md index 1ff056d..c9a64a9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Quoting Email Headers in Thunderbird - [![Version](https://img.shields.io/badge/version-2.4.0-blue.svg)](https://github.com/jeevatkm/ReplyWithHeaderMozilla/releases/latest) [![License](https://img.shields.io/github/license/jeevatkm/ReplyWithHeaderMozilla.svg)](LICENSE) + [![Version](https://img.shields.io/badge/version-2.6.0-blue.svg)](https://github.com/jeevatkm/ReplyWithHeaderMozilla/releases/latest) [![License](https://img.shields.io/github/license/jeevatkm/ReplyWithHeaderMozilla.svg)](LICENSE) ReplyWithHeaderMozilla aka [RWH Thunderbird] is an add-on for Thunderbird mail client that enables email header. Brings Outlook header capabilities into Thunderbird. diff --git a/chrome/content/core.js b/chrome/content/core.js index 7c5f481..26669db 100755 --- a/chrome/content/core.js +++ b/chrome/content/core.js @@ -298,6 +298,16 @@ var ReplyWithHeader = { return recipients.trim(); }, + getHeaderQuotSeq: function(selectedOption) { + let quotSeq = { + 0: ['subject', 'date', 'from', 'to', 'cc'], // Default + 1: ['from', 'date', 'to', 'cc', 'subject'], // Outlook + 2: ['from', 'date', 'subject'], // Simple + 3: ['from', 'to', 'cc', 'date', 'subject'] // Lookout + }; + return quotSeq[selectedOption]; + }, + parseMsgHeader: function(hdr) { // Decoding values into object // Ref: https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIMsgDBHdr @@ -328,6 +338,8 @@ var ReplyWithHeader = { let rawHdr = this.getMsgHeader(this.messageUri); let pHeader = this.parseMsgHeader(rawHdr); let headerQuotLblSeq = this.prefs.headerQuotLblSeq; + let headerQuotLblSeqValues = this.getHeaderQuotSeq(headerQuotLblSeq); + this.log.debug('headerQuotLblSeq: ' + headerQuotLblSeq + ' \tValues: ' + headerQuotLblSeqValues); var rwhHdr = '