Closed
Bug 1520367
Opened 6 years ago
Closed 6 years ago
Accounts API: mark special folders with their type
Categories
(Thunderbird :: Add-Ons: Extensions API, enhancement)
Thunderbird
Add-Ons: Extensions API
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 66.0
People
(Reporter: darktrojan, Assigned: darktrojan)
References
Details
Attachments
(2 files)
5.43 KB,
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
1.67 KB,
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
We should have a field on some special types of folders (junk, trash, outbox, etc.) which says what type of folder they are, so they can be identified easily.
Assignee | ||
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Comment on attachment 9036840 [details] [diff] [review] 1520367-webext-folder-type-1.diff Review of attachment 9036840 [details] [diff] [review]: ----------------------------------------------------------------- Stealing the review. One minor comment to consider: ::: mail/components/extensions/schemas/accounts.json @@ +42,5 @@ > + "type": { > + "type": "string", > + "optional": true, > + "description": "The type of folder, for several common types.", > + "enum": ["inbox", "drafts", "sent", "trash", "templates", "archives", "junk", "outbox"] If you look at other API schemas, they tend to define a type and then $ref it. See for example https://searchfox.org/comm-central/source/mail/components/extensions/schemas/windows.json#11 It is possible this only happens when it is actually used more than once, I haven't verified this.
Attachment #9036840 -
Flags: review?(mkmelin+mozilla) → review+
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/23ef8a434c94
Accounts API: mark special folders with their type; r=Fallen DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•6 years ago
|
Target Milestone: --- → Thunderbird 66.0
Assignee | ||
Comment 4•6 years ago
|
||
I discovered one place where this breaks things because the schema asks for an object, not a MailFolder. Will post a patch shortly.
Assignee | ||
Updated•6 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•6 years ago
|
Attachment #9037928 -
Flags: review?(philipp) → review+
Assignee | ||
Updated•6 years ago
|
Keywords: checkin-needed
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/21ddeb46254b
followup - Change mailTabs schema to use defined type; r=Fallen
Status: REOPENED → RESOLVED
Closed: 6 years ago → 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•