I did this for the latest version of the software, 2.10.10. The correct file to modify was Subscriberlib2.php. The first query has already been changed to "select *" in this version so no modification of that query was required. All I did was add this query on line 518 as part of the while loop:
- Code: Select all
Sql_Query("update {$GLOBALS[$tables]["message"]} set status = \"submitted\" where embargo <= now() and id = (select max(messageid) from {$GLOBALS[$tables]["listmessage"]} where listid = ".$row["listid"].")");
I have only done this once but it seems to be working exactly as advertised.
I suspect the next steps in this process would be to put a flag in the listmessage table that indicates what message should be sent to new users. Then the query above would select the flagged message for the list required. A setting could be set to send either the last message sent or the one selected or none for a given list, depending on the needs of the list admin.
Then an autoresponder with campaigns would be nice.
Ted