From bfc354146a87d69d8989f170b990b89ccf048f76 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Sat, 5 Apr 2014 12:14:20 +0200 Subject: [PATCH] only show cc line in forwarded message when not empty --- src/js/controller/write.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/controller/write.js b/src/js/controller/write.js index 4cade92..a58a7ef 100644 --- a/src/js/controller/write.js +++ b/src/js/controller/write.js @@ -116,7 +116,8 @@ define(function(require) { 'Date: ' + sentDate + '\n' + 'Subject: ' + re.subject + '\n' + 'To: ' + createString(re.to) + '\n' + - 'Cc: ' + createString(re.cc) + '\n\n\n'; + ((re.cc && re.cc.length > 0) ? 'Cc: ' + createString(re.cc) + '\n' : '') + + '\n\n'; } else { body = '\n\n' + sentDate + ' ' + from + ' wrote:\n> ';