Open Bug 1679818 Opened 5 years ago Updated 5 years ago

[API Request] API to provide an outgoing server

Categories

(Thunderbird :: Add-Ons: Extensions API, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: neil, Unassigned)

References

Details

Instead of intercepting the sending of a message as it is composed, I would like to be able to take the finished MIME body (after signing/encryption) and send it to, say, an Exchange ActiveSync server.

Some alternatives that would work for me:

  • An API to register a custom outgoing server type and create outgoing servers of that type which can be set as the outgoing server for specific identities (identities for incoming accounts of that type)
  • An API to monitor outgoing messages where the identity is associated with one of specific custom incoming server types
  • An API to monitor outgoing messages where the identity has not had a specific outgoing server selected
  • As an interim measure, an API that a WebExperiment can use to monitor outgoing messages sent via MessageSend.jsm

Note ActiveSync is a bit of an annoying edge case, because you can't manually upload the message to the server's Sent folder; all you can do is to set a flag when sending the message that it should be copied to the Sent folder. It would therefore be helpful both for the extension to be aware of whether the message is expected to be copied to the Sent folder and also to be able to inhibit this if necessary.

(In reply to comment #0)

  • As an interim measure, an API that a WebExperiment can use to monitor outgoing messages sent via MessageSend.jsm

Actually, what could work here is if the WebExperiment creates a class that extends MessageSend, and then substitutes it in using the existing mail-set-sender observer notification.

You need to log in before you can comment on or make changes to this bug.