Closed Bug 1712601 Opened 3 years ago Closed 3 years ago

Add a method to retrieve mailing lists to nsIAbManager

Categories

(Thunderbird :: Address Book, enhancement)

enhancement

Tracking

(thunderbird_esr78 wontfix)

RESOLVED FIXED
90 Branch
Tracking Status
thunderbird_esr78 --- wontfix

People

(Reporter: lasana, Assigned: lasana)

References

(Regressed 2 open bugs)

Details

Attachments

(1 file)

For bug Bug 1705100 we want to be able to detect mailing lists in the public address fields and include their member addresses in the threshold count. nsIAbManager provides a method to check if a mailing lists exists by name but no explicit method for retrieving it. This bug adds such a method.

After spending some time on this I realized that the AddrBookMailingList class does not seem to support nested mailing lists. Looking at the database schema, that information seems to be lost as the nested mailing list is stored both as a list and a card separately. I'm not sure how much of this area is a priority.

https://searchfox.org/comm-central/rev/0ad407d04042e5801490dc054d65d4bb97a2c0e8/mailnews/addrbook/modules/AddrBookMailingList.jsm#62-79

(In reply to Lasana Murray from comment #1)

After spending some time on this I realized that the AddrBookMailingList class does not seem to support nested mailing lists. Looking at the database schema, that information seems to be lost as the nested mailing list is stored both as a list and a card separately. I'm not sure how much of this area is a priority.

https://searchfox.org/comm-central/rev/0ad407d04042e5801490dc054d65d4bb97a2c0e8/mailnews/addrbook/modules/AddrBookMailingList.jsm#62-79

Personally, I really don't care for nested lists, but they're technically possible to create and nsMsgCompose will expand them if they exist (there's even a unit test!). No UI or API supports them, and I'm not sure I've ever seen a complaint about that, so I wouldn't waste your time.

(In reply to Geoff Lankow (:darktrojan) from comment #3)

(In reply to Lasana Murray from comment #1)

After spending some time on this I realized that the AddrBookMailingList class does not seem to support nested mailing lists. Looking at the database schema, that information seems to be lost as the nested mailing list is stored both as a list and a card separately. I'm not sure how much of this area is a priority.

https://searchfox.org/comm-central/rev/0ad407d04042e5801490dc054d65d4bb97a2c0e8/mailnews/addrbook/modules/AddrBookMailingList.jsm#62-79

Personally, I really don't care for nested lists, but they're technically possible to create and nsMsgCompose will expand them if they exist (there's even a unit test!). No UI or API supports them, and I'm not sure I've ever seen a complaint about that, so I wouldn't waste your time.

Understood, however seems to me like you can create a nested list by adding the list name to an existing list.

Target Milestone: --- → 90 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/9a62ee7400de
Add getMailListFromName() to nsIAbManager. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Regressions: 1735508
Regressions: 1749210
Regressions: 1773690
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: