In #808518: API change: Split mail preparation from sending, Mime Mail module is preparing an API change. Now mimemail() returns a boolean but after this API change will return an array with the whole message. The actual boolean will be included in return array as key "result".

Fro, PHPDoc:

* @return
*   An array containing the MIME encoded message, including headers and body.

Simplenews must adapt to the new Mime Mail API.

Comments

sgabe’s picture

Status: Active » Needs review
StatusFileSize
new1.39 KB
new1.35 KB

See the attached patches for both D6 branches with backwards compatibility for previous versions of Mime Mail.

simon georges’s picture

Status: Needs review » Needs work

The backwards compatibility seems to be more tricky: if returning a boolean, all keys needed for the watchdog message are lost. But I'll see your point, and will work on the basis of your first patches.

sgabe’s picture

Oh, I see. Sorry I wasn't thorough enough...

simon georges’s picture

No problem, at least you told us about your api modifications.

What about the 7.x version ? (I'll work on the 6.x patches this week-end).

sgabe’s picture

This doesn't valid for the 7.x version since on Drupal 7 you can use drupal_mail() to send messages with any mail system, so mimemail() is deprecated.

simon georges’s picture

Status: Needs work » Needs review
StatusFileSize
new1.38 KB

Can somebody review the patch ?

sgabe’s picture

Assigned: sgabe » Unassigned
Status: Needs review » Reviewed & tested by the community

I think it's perfect.

simon georges’s picture

Status: Reviewed & tested by the community » Fixed

Committed in 6.x-1.x and 6.x-2.x.
No need to port it to 7.x-1.x.

@sgabe, thanks again for the heads up.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.