Closed (fixed)
Project:
Maillog / Mail Developer (obsolete)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2012 at 15:00 UTC
Updated:
2 Jun 2020 at 01:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
miro_dietikerThis is initiated with mailsystem.
http://drupal.org/project/mailsystem
There are identical issues that request this kind of stack. Maillog should only implement those APIs (that are missing in core) while a tool like mailsystem should introduce such APIs.
Comment #2
ParisLiakos commentedComment #3
ParisLiakos commentedSorry,for changing the status,crossposting.
i know about mailsystem..but till then,i was thinking about abstracting the code to those two reusable functions,so other modules can log their emails easier,instead of duplicating the code.
i think i didnt explain well in the issue summary,you will know what i mean once you check the patch.
Comment #4
jonathan_hunt commentedAn updated patch that includes more recent logic in maillog_log(). It is good to add additional structure to the module and allow the functionality to be called from other modules.
Comment #5
ParisLiakos commentedComment #6
alex.bukach commentedI propose another way that uses a kind of chaining (its seems something like that was planned to implement or was left from 6.x version). This way, in mailsystem settings one needs to select MailLogSystem class where appropriate, and in MailLog settings one needs to select another MailSystemInterface class which will be used by MailLog to send format and mails.
Comment #7
alex.bukach commentedComment #8
alex.bukach commentedComment #11
das-peter commentedI'd say #6 should go in. Patch is pretty straight forward and fixes the current code.
Maybe the issue can be "re-opened" later-on to evaluate further what to do with other contrib modules.
Comment #12
neochief commented+1 for this change.
Comment #13
berdirThanks, committed. Let's see what we can do about this in 8.x.
Comment #15
alex.bukach commentedBerdir, though the patch is committed, it's not in the 7.x-1.x-dev snapshot which is of July 17 (while commit is of July 18). Can it be fixed?
Comment #16
berdirNot sure, commit looks fine to me. I can't trigger a dev release manually.
Comment #17
berdirI created an alpha release and it is correct, so I guess something went wrong with the timing here. It's in the alpha and I expect it will be correct in the dev the next time something is committed.
Comment #18
damienmckennaLet's do a separate issue for D8.