When using the proposed logging functionality (#2653394: Integration with Maillog) it would be useful if the module could also be set to not actually deliver the emails. This would be similar to the option in the Maillog module.
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | smtp-n2653398-17.patch | 3.2 KB | damienmckenna |
Comments
Comment #2
damienmckennaThis adds a new "smtp_deliver" variable which will allow the email to be generated and queued as normal, but stops just before the message is actually delivered.
Comment #3
damienmckennaThis fixes a tiny typo in the field description.
Comment #6
damienmckennaComment #8
damienmckennaThe tests pass, so marking this "needs review".
Comment #9
damienmckennaThis should be safe to include in the next release, and will help with testing too.
Comment #10
gadaniels72 commentedPatch #3 worked for me. To test, I went to the SMTP configuration and set "turn on delivery of emails" to off. I then created a new account and marked the notify user checkbox. The report log showed a message that email delivery was disabled. No email was received. Turned mail delivery back on, ran cron, and then repeated creating a new account. Received only the one message sent after I turned email delivery back on, as I would expect.
Comment #11
gadaniels72 commentedComment #12
Anonymous (not verified) commentedWorks great for me. Terminal pic included.
Comment #14
wundo commentedDamien, is this not handled by our Maillog integration? Do we need to "duplicate" this feature?
Comment #15
damienmckennaWith the Maillog integration it is still SMTP that sends the message, Maillog doesn't get involved.
Rerolled.
Comment #16
wundo commentedYour patch is rolling back changes from #2698029: No ALL watchdog logging for non-queued
Comment #17
damienmckennaSorry about this. This should cover it?
Comment #19
wundo commentedComment #21
wundo commentedComment #25
wundo commentedThis was committed to both branches (7.x-1.x and 7.x-2.x)