Closed Bug 756821 Opened 12 years ago Closed 12 years ago

Port |Bug 305089: Don't mark as scam any mail composed by user (Drafts, Templates, Sent, Outbox folders)| and non-IPv6 parts of |Bug 362434: Add IPv6 support to phishingDetector.js|

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
normal

Tracking

(seamonkey2.9 wontfix, seamonkey2.10 fixed, seamonkey2.11 fixed, seamonkey2.12 fixed)

RESOLVED FIXED
seamonkey2.10
Tracking Status
seamonkey2.9 --- wontfix
seamonkey2.10 --- fixed
seamonkey2.11 --- fixed
seamonkey2.12 --- fixed

People

(Reporter: iannbugzilla, Assigned: iannbugzilla)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Ported parts (obsolete) — Splinter Review
Port the following from TB to SM:
Bug 305089: Don't mark as scam any mail composed by user (Drafts, Templates, Sent, Outbox folders)
and the relevant parts of:
Bug 436044 - Convert some more nsMsgFolderFlags users over to the id
Bug 506577: convert users of IsSpecialFolder(folder, ...) over to use folder.isSpecialFolder(...)
The non-IPv6 parts of:
Bug 362434: Add IPv6 support to phishingDetector.js

The IPv6 parts are covered in bug 80855
Attachment #625442 - Flags: review?(neil)
No longer blocks: 80855
Depends on: 80855
Comment on attachment 625442 [details] [diff] [review]
Ported parts

I assume we're going to get the improved IP address detector at some point?

>+    var unobscuredHostName = hostNameIsIPAddress(hrefURL.host);
Might want to rename unobscuredHostName to ipAddress

>-      isPhishingURL = confirmSuspiciousURL(phishingType, unobscuredHostName.value);
>+      isPhishingURL = confirmSuspiciousURL(phishingType, unobscuredHostName);
You're passing in the IP address even when it's not that phishing type, and therefore it is empty. I'm not sure passing the detected IP address is useful even when it exists, you should probably always pass the original host.

>+// returns the unobscured host (if there is one), otherwise false
Might want to return null on failure
Attachment #625442 - Flags: review?(neil) → review+
Carrying forward r=
Attachment #625442 - Attachment is obsolete: true
Attachment #625525 - Flags: review+
Comment on attachment 625525 [details] [diff] [review]
Updated for review comments [Checked in: Comment 3, 4 & 5]

http://hg.mozilla.org/comm-central/rev/58044311b637

[Approval Request Comment]
Regression caused by (bug #): 
User impact if declined: Less robust checking of scam emails
Testing completed (on m-c, etc.): Landed on trunk
Risk to taking this patch (and alternatives if risky): Low risk
String changes made by this patch: None
Attachment #625525 - Attachment description: Updated for review comments → Updated for review comments [Checked in: Comment 3]
Attachment #625525 - Flags: approval-comm-beta?
Attachment #625525 - Flags: approval-comm-aurora?
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.12
Attachment #625525 - Flags: approval-comm-beta?
Attachment #625525 - Flags: approval-comm-beta+
Attachment #625525 - Flags: approval-comm-aurora?
Attachment #625525 - Flags: approval-comm-aurora+
Blocks: 80855
No longer depends on: 80855
Comment on attachment 625525 [details] [diff] [review]
Updated for review comments [Checked in: Comment 3, 4 & 5]

http://hg.mozilla.org/releases/comm-aurora/rev/11549db5edf6
Attachment #625525 - Attachment description: Updated for review comments [Checked in: Comment 3] → Updated for review comments [Checked in: Comment 3, 4 & 5]
Flags: in-testsuite-
Target Milestone: seamonkey2.12 → seamonkey2.10
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: