Closed
Bug 379274
Opened 18 years ago
Closed 18 years ago
Should not be possible to delete or detach attachments from signed/encrypted mails (SeaMonkey)
Categories
(SeaMonkey :: MailNews: Message Display, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: g.s, Assigned: mcsmurf)
Details
Attachments
(1 file, 1 obsolete file)
793 bytes,
patch
|
neil
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1.2) Gecko/20070222 SeaMonkey/1.1.1
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1.2) Gecko/20070222 SeaMonkey/1.1.1
When you removed an attachment from an S/MIME-signed email, the signature is removed as well and Seamonkey does no longer display the body of this email.
Reproducible: Always
Steps to Reproduce:
1. Attach a file
2. Use S/MIME to sign the mail
3. Send the mail
4. Remove th attachment in your "Sent" folder (or from a received mail)
5. Try to read the mail
Actual Results:
The signature is removed from the mbox file (not a real problem, it would be invalid, anyway) and you can no longer view the message body.
Expected Results:
Seamonkey should still display the message body and tell me that the signature is invalid or missing.
Assignee | ||
Comment 1•18 years ago
|
||
It should actually not be possible to delete attachments from such mails, see Bug 288273 (until Bug 297314 is fixed). But this was only fixed for Thunderbird. Changing this bug to SeaMonkey version of that one.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Deleting attachments from signed mails causes their body not to be displayed → Should not be possible to delete or detach attachments from signed/encrypted mails (SeaMonkey)
Version: unspecified → Trunk
IMO it should be possible. If you send a signed email with attachments, you might want to remove the attachment from your Sent-Folder. And you don't need to verify the signature, the receipients do.
Assignee | ||
Comment 3•18 years ago
|
||
Yes, but as long as this is not possible without bugs like you mentioned in Comment 0, this function should get disabled.
Assignee | ||
Comment 4•18 years ago
|
||
Assignee: mail → bugzilla
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•18 years ago
|
||
Comment on attachment 263482 [details] [diff] [review]
Patch
Most of the changes from Bug 288273 were already in the code, so I only needed to port the change to that function.
Attachment #263482 -
Flags: superreview?(neil)
Attachment #263482 -
Flags: review?(neil)
Comment 6•18 years ago
|
||
Comment on attachment 263482 [details] [diff] [review]
Patch
> var uri = GetLoadedMessage();
>- return !IsNewsMessage(uri) && (!IsImapMessage(uri) || CheckOnline());
>+ var canDetach = !IsNewsMessage(uri) && (!IsImapMessage(uri) || CheckOnline());
>+ if (canDetach && ("content-type" in currentHeaderData))
>+ {
>+ var contentType = currentHeaderData["content-type"].headerValue;
>+ canDetach = contentType.indexOf("application/x-pkcs7-mime") < 0 &&
>+ contentType.indexOf("application/x-pkcs7-signature") < 0;
>+ }
>+ return canDetach;
Please rewrite this along these lines:
if ("content-type" in currentHeaderData &&
/regexp left as an exercise/.test(blah))
return false;
var uri = GetLoadedMessage();
return blah;
If you want me to test it I'll need a sample signed attachment.
Attachment #263482 -
Flags: superreview?(neil)
Attachment #263482 -
Flags: superreview-
Attachment #263482 -
Flags: review?(neil)
Assignee | ||
Comment 7•18 years ago
|
||
Attachment #263482 -
Attachment is obsolete: true
Assignee | ||
Updated•18 years ago
|
Attachment #263879 -
Flags: review?(neil)
Updated•18 years ago
|
Attachment #263879 -
Flags: review?(neil) → review+
Comment 8•18 years ago
|
||
Comment on attachment 263879 [details] [diff] [review]
Patch 2
.test not /.
Attachment #263879 -
Flags: superreview+
Assignee | ||
Comment 9•18 years ago
|
||
Checking in msgHdrViewOverlay.js;
/cvsroot/mozilla/mailnews/base/resources/content/msgHdrViewOverlay.js,v <-- msgHdrViewOverlay.js
new revision: 1.155; previous revision: 1.154
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•