Tool for developers which diverts all emails to watchdog. It is meant to only be run in development environments much the way that the devel module is used. I created this module after noticing that devel removed the smtp log functionality in its 7.x version, however, I still needed this functionality. There is a similar module, maillog, which I tried but it did not fully work for me. It stops outgoing emails but I was unable to get my logs to display the information. I also noticed that maillog creates its own table and I much prefer to use the existing watchdog. It it less intrusive. I also read that I can add some information to the settings.php file to mimic this functionality but I prefer not to mess with my settings file just for development purposes. So for this reason I hope others can find this code useful.
Project page:
My devel_email sandbox can be found at http://drupal.org/sandbox/hurley/1907386. This is for version 7.x.
Reviews of other projects:
http://drupal.org/node/1909634#comment-7039598
http://drupal.org/node/1909634#comment-7041918
http://drupal.org/node/1909634#comment-7041944
http://drupal.org/node/1908884#comment-7044632
http://drupal.org/node/1914458#comment-7054524
Comments
Comment #1
barnettech commentedHi Hurley,
I ran your code through Pareview and there are just a few items that need fixing:
run your code through http://ventral.org/pareview yourself if you like as well.
Not many errors though which is good so we can proceed to the manual code review process.
-- Barnettech
Comment #2
barnettech commentedComment #3
klausiThose minor coding standard issues are surely no application blockers. Anything else? Make sure to read through the source code of the project.
We are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)
Comment #4
rob.barnett commentedThanks barnettech and klausi for your feedback. I read through your Review Bonus post, klausi, and will begin reviewing asap. Thank you again.
Comment #4.0
rob.barnett commentedcleaning up description page
Comment #5
klausiDon't forget to add the "PAReview: review bonus" tag as indicated in #1410826: [META] Review bonus, otherwise you won't show up on my high priority list.
Comment #6
rob.barnett commentedadding PAReview: review bonus. Thanks.
Comment #7
iwhitcomb commentedAs seen in comment #1 PAReview is still outputting a couple of errors.
Just to clarify on those:
You don't need to declare your .module file in the .info, Drupal already knows to do this.
I believe what it's saying is that you only need to document the "Implements hook_mail_alter().", no need to add the @params.
You're missing a README.txt file. My only other suggestion would be to create a README.txt and add a hook_help() and/or the "Configure" link on the module page by specifying "configure = admin/config/development/devel_email" in your .info file.
Other than that, it looks good to me.
Comment #8
rob.barnett commentedThanks iwhitcomb,
I really appreciate your feedback. I added a README.txt, configure to the .info and cleaned up the PAReview errors.
Comment #8.0
rob.barnett commentedupdating review of another project - Ensemble Video.
Comment #9
iwhitcomb commentedOk, just a few minor PAReview errors on your README.txt now.
Optional, but recommended: Checkout the README.txt style examples on http://drupal.org/node/447604 for additional information on how to format it.
Other than that this all looks good to me. I'm leaving this in "needs review" since there is nothing functionally wrong with the module and these are all very minor errors.
Comment #10
iwhitcomb commentedAhh also, you need to properly branch your repo.
See here for instructions on how to do this
http://drupal.org/empty-git-master
http://drupal.org/node/1015226
http://drupal.org/node/1066342
Comment #11
rob.barnett commentedThanks again iwhitcomb. Your feedback has been invaluable. I fixed the minor issues with the README.txt file and created a 7.x-1.x-dev branch, made it the version to work from.
Comment #12
iwhitcomb commentedOk, you're almost there. That documentation is pretty unclear(I did the exact same thing)...
All you've got to do is rename your 7.x-1.x-dev branch to 7.x-1.x. The 1.x means that it's a dev branch so there's no need to add that, it only gets appended once it's a full project and you've created a release off of a dev branch.
Also, I'm not sure this is really a requirement, but PAReview will gripe at you for having a master branch at all.
Comment #13
rob.barnett commentedThanks again iwhitcomb. I renamed the branch to 7.x-1.x and deleted the master branch.
Comment #14
iwhitcomb commentedLooks good to me
Comment #15
klausimanual review:
');": This is vulnerable to XSS exploits, do not concatenate dynamic variables into watchdog messages, use placeholders instead. Please read http://drupal.org/node/28984 again.
Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #16
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #16.0
PA robot commentedreview other project update.