Closed (fixed)
Project:
Simplenews
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2012 at 01:12 UTC
Updated:
22 Feb 2012 at 01:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
berdirAttached patch adds this including simple test coverage.
Note that I renamed simplenews_clear_spool_from_node($node) to simplenews_delete_spool(array $conditions) to a) allow different conditions than just a node object and b) differentiate the function from simplenews_clear_spool(), which just deletes *old* records which are not used anymore.
Comment #3
berdir#1: clear_spool_on_unsubscribe.patch queued for re-testing.
Comment #5
berdirI hate API functions in optional include files :) We really need to move stuff that can be used as API functions by other modules and ourself. Right now, "module_load_include('inc', 'simplenews', 'includes/simplenews.mail');" is part of the API if you want to send a newsletter, that's just wrong. We currently have that line 12x in our code, all over the place.
Comment #6
miro_dietikerAlmost perfect ... except the comment "Make sure that 100 mails have been sent."
Please change it to 99 and commit.
Comment #7
berdirCommited.