Closed Bug 1892866 Opened 29 days ago Closed 21 days ago

Remove nsIImapService.fetchMessage() from public interface

Categories

(MailNews Core :: General, task)

Tracking

(thunderbird_esr115 wontfix, thunderbird126 wontfix)

RESOLVED FIXED
127 Branch
Tracking Status
thunderbird_esr115 --- wontfix
thunderbird126 --- wontfix

People

(Reporter: benc, Assigned: mkmelin)

Details

Attachments

(1 file)

nsIImapService.fetchMessage() seems over-complicated, under-documented and not publicly used.
It's easy to remove from the public interface from the C++ point of view, but the IMAP-JS relies on it being part of the interface.
Magnus: got any opinion from the JS side?
I'll post my C++ patch here just because I'd already written it (and I like the idea of being ruthless about public interfaces), but It's really not a big deal if it never gets applied.

Flags: needinfo?(mkmelin+mozilla)

You're right this is not a great interface.
I think removing it is just a matter of shuffling around a bit of code to avoid some unnecessary indirection magic.

Flags: needinfo?(mkmelin+mozilla)
Assignee: nobody → mkmelin+mozilla
Attachment #9398055 - Attachment description: Bug 1892866 - Remove nsIImapService.fetchMessage() from public interface. → Bug 1892866 - Remove nsIImapService.fetchMessage() from public interface. r=BenC
Status: NEW → ASSIGNED
Summary: Remove nsIImapService.fetchMessage() from public interface? → Remove nsIImapService.fetchMessage() from public interface
Target Milestone: --- → 127 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/1e74c5719795
Remove nsIImapService.fetchMessage() from public interface. r=BenC

Status: ASSIGNED → RESOLVED
Closed: 21 days ago
Resolution: --- → FIXED
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/7f5d26c07e3e
Follow-up, fix debug errors. rs=bustage-fix DONTBUILD
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: