MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / getRecipients

Method getRecipients

src/content-scripts/providerSpecific.js:146–149  ·  view source on GitHub ↗

* Parse recipients from the Yahoo Webmail interface * @return {Promise. } The recipient objects in the form { email: 'jon@example.com' }

()

Source from the content-addressed store, hash-verified

144 * @return {Promise.<Array>} The recipient objects in the form { email: 'jon@example.com' }
145 */
146 async getRecipients() {
147 const recipientElements = document.querySelectorAll('.compose-header [data-test-id="container-to"] [data-test-id="pill"]');
148 return getAttr(recipientElements, 'title');
149 }
150
151 /**
152 * Set the recipients in the Yahoo Webmail editor.

Callers

nothing calls this directly

Calls 1

getAttrFunction · 0.85

Tested by

no test coverage detected