Closed Bug 1677683 Opened 4 years ago Closed 3 years ago

Implement nsISmtpService.sendMailMessage in JS

Categories

(MailNews Core :: Networking: SMTP, task)

Tracking

(thunderbird_esr78 wontfix)

RESOLVED FIXED
86 Branch
Tracking Status
thunderbird_esr78 --- wontfix

People

(Reporter: rnons, Assigned: rnons)

References

Details

Attachments

(5 files)

No description provided.
Assignee: nobody → remotenonsense
Status: NEW → ASSIGNED
Summary: Rewrite nsSmtpProtocol in JS → Implement nsISmtpService.sendMailMessage in JS

Currently works when authentication is not required by the SMTP server. The focus is sendMailMessage, other functions in SmtpService.jsm should be considered incomplete.

Please mark the phab revision dependencies, so that they can be landed easily together.

(In reply to Magnus Melin [:mkmelin] from comment #4)

Please mark the phab revision dependencies, so that they can be landed easily together.

Done.

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/7f7603232e85
Part 1: Add SmtpModuleLoader to prepare for JS rewriting. r=mkmelin
https://hg.mozilla.org/comm-central/rev/03e5afc0f063
Part 2: Import emailjs-smtp-client to prepare for rewriting. r=mkmelin
https://hg.mozilla.org/comm-central/rev/7e0d70d11218
Part 3: Implement sendMailMessage with SmtpClient.jsm. r=mkmelin

Target Milestone: --- → 86 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/493b61e2179d
Part 4: Handle authentication in sendMailMessage. r=mkmelin
https://hg.mozilla.org/comm-central/rev/d53854d7090e
Part 5: Add UTF-8 support and basic error handling to SmtpClient.jsm. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
  • onStartSending of the user supplied listener is not called
    (because sendMailMessage() does not call OnStartRunningUrl of the deliveryListener)
  • no meaningfull status is returned to onStopSending of the user supplied listener
    (seems that _actionStream() in SmtpClient.jsm does not return the SMTP server status)
Blocks: 1704409
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: