Hi,
I keep seeing duplicated Re: on signed/encrypted messages. This seems to
be because TB keeps a flag for whether to prefix subjects with "Re: ",
stored independently of their subject. I think the proper solution would
be to unset the flag, but that seems to be non-trivial--just setting the
nsIMsgDBHdr's flags doesn't have any effect. So here's a patch that just
removes one "Re: " from the new subject if TB is going to put it back.
Also, when I tried to send this signed, Enigmail refused and gave me a
fairly nondescript error. I'm assuming the attachment is to blame. Is
this a known issue?
Thanks,
Ed
diff --git a/ui/content/enigmailMsgHdrViewOverlay.js
b/ui/content/enigmailMsgHdrViewOverlay.js
index 327fbac..5f17627 100644
--- a/ui/content/enigmailMsgHdrViewOverlay.js
+++ b/ui/content/enigmailMsgHdrViewOverlay.js
@@ -1107,4 +1107,7 @@ Enigmail.hdrView = {
setSubject: function(subject) {
if (gFolderDisplay.selectedMessages.length === 1 &&
gFolderDisplay.selectedMessage) {
+ if (gFolderDisplay.selectedMessage.flags & nsMsgMessageFlags.HasRe) {
+ subject = subject.replace(/^Re: /, '');
+ }
gFolderDisplay.selectedMessage.subject =
EnigmailData.convertFromUnicode(subject, "utf-8");
this.updateHdrBox("subject", subject);
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
diff --git a/ui/content/enigmailMsgHdrViewOverlay.js
b/ui/content/enigmailMsgHdrViewOverlay.js
index 327fbac..5f17627 100644
- --- a/ui/content/enigmailMsgHdrViewOverlay.js
+++ b/ui/content/enigmailMsgHdrViewOverlay.js
@@ -1107,4 +1107,7 @@ Enigmail.hdrView = {
setSubject: function(subject) {
if (gFolderDisplay.selectedMessages.length === 1 &&
gFolderDisplay.selectedMessage) {
+ if (gFolderDisplay.selectedMessage.flags & nsMsgMessageFlags.HasRe) {
+ subject = subject.replace(/^Re: /, '');
+ }
gFolderDisplay.selectedMessage.subject =
EnigmailData.convertFromUnicode(subject, "utf-8");
this.updateHdrBox("subject", subject);
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEECzNSP7n340AYaHPmcC7hJ3E8yBAFAlrSNMMACgkQcC7hJ3E8
yBCRAgf/e46dtR4/COsVriU4051/mmg6H8MT4f6GVEpNTns1gcg/j/FC52ZeKwUx
9m5sAZLGOXDpI8M+wLKe+cUPAxhfyp5QExvHF6eP9W+jdvRSFT0OrrvTGbLzK71x
XHu8vPOc9ihMNuNuYtnZS9XvvJ53yQyjP6E5LMLtqbE+EKEyWo2Jw2Yph09mQopC
/W6iYgMXvtHLPW8yjRM/v+3wSs3/oVsL5QkTxLqjy2nOf4BSPVJ+BifTd3uT2E40
FPQNFaq+zsgMm4b4dBRFT1RReovA/dHKhmfPbRyZuPqaZ40eDwyfrOcd4urKN8GZ
JITwfiJBM09ReV9TG4qcWPXx7/i71w==
=Vjvw
-----END PGP SIGNATURE-----
_______________________________________________
enigmail-users mailing list
[email protected]
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net