Closed Bug 1534175 Opened 5 years ago Closed 5 years ago

If a mailing list member's address is removed, the list can't be added to

Categories

(MailNews Core :: Address Book, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
Thunderbird 67.0

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1522453 +++

Make a mailing list
Add members with addresses
Remove a member's address
Add more members … fail.

This works without the UI calling editMailListToDatabase, which counts the number of list members with email addresses and saves that number as the total count.

This is a counting error. The code doesn't prevent the presence of an email-less card, but it doesn't count it, which means a card is not seen by anything that enumerates the list. (Except the list's addressLists property, which is an in-memory array.)

Assignee: nobody → geoff
Status: NEW → ASSIGNED
Attachment #9049863 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9049863 [details] [diff] [review]
1534175-list-length-1.diff

Review of attachment 9049863 [details] [diff] [review]:
-----------------------------------------------------------------

r=mkmelin

::: mailnews/addrbook/test/unit/test_bug1534175.js
@@ +1,1 @@
> +function run_test() {

please add a short comment about what this test is about, so people do not need to go to the bug report
Attachment #9049863 - Flags: review?(mkmelin+mozilla) → review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/0020655906af
Store accurate length of an address list, if a member has no address; r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 67.0
Comment on attachment 9049863 [details] [diff] [review]
1534175-list-length-1.diff

I guess we want this on ESR.
Attachment #9049863 - Flags: approval-comm-esr60?

How soon? Ignore all precaution and ship it in TB 60.6? Or have it on a beta first?

Can you put it into a candidate, like last time? I have time to check today.

No, try builds of ESR currently don't work, bug 1534204. You'd have to try it on a Daily of today which is also pretty broken, bug 1533085. Maybe the UI you need still works.

I'm asking about the risk here. I've been criticised for running an aggressive uplift policy, and it's already bitten us twice. One bite was in the context of the address book, where allocating unique IDs made address auto-completion in the compose window's addressing widget very slow for some users with large address books. So although the bug might be fixed, some other issues might have been introduced. One never knows.

You do not need to push this fast "just for me". I have mitigation in place for this bug in my AddOn and everybody else had to cope with this bug for years, probably no one noticed.

I played around with daily (67.0a1 (2019-03-11) (64-bit)) and it looks like this specific bug is fixed, but there is another counting error, which i will describe in the main bug.

I'd rather have this bug than the problems it caused. Backed out for now.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Depends on: 1534596, 1534598
Attachment #9049863 - Flags: approval-comm-esr60?

Can bug 1534596 and bug 1534598 be closed by saying: "Fixed by backout of bug 1534175"?

Flags: needinfo?(geoff)

Seems reasonable.

Flags: needinfo?(geoff)

Upon further investigation, I've decided to leave this bug unfixed. The rabbit hole goes too deep.

As I've said elsewhere I'm not opposed to arbitrary collections of contacts (with or without email addresses), but the address list feature isn't up to it. Somewhere post-68 the address book code needs some major work and I hope we can then add some useful features like tags.

Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: