Currently not with standard bounce processing in the 2.10.10 release, which will only unconfirm the bounced user after reaching the bounce threshold . The 'blacklist on bounce' option will be included in the 2.11.4 development release, but if you really need this now, you could take a look at 'advanced bounce processing' , which does allow adding a rule that will blacklist on bounce. See: http://docs.phplist.com/AdvancedBounceHandlingInfosoundwave wrote:1. Can PHPlist set a users blacklist flag to 1 automatically when it bounces? (Is that linked to define ("MANUALLY_PROCESS_BOUNCES",1); in config.php? Another silly question: where is the README.commandline?)
No, I'm afraid export options are fairly limited. However, you could take a look at this mod, as a starting point for adding the additional export functionality you need:[mod] Export Users without Blacklisted or Unconfirmed users (yes, it does the opposite of what you want, but it shouldn't be too difficult to change the query)soundwave wrote:2. Is there an option to export the blacklist itself? (I just can't seem to find a way)
Not sure, haven't used the import feature much and never needed to check this. However there is an interesting note in the import documentation which suggests the "overwrite existing" option will allow retaining certain field values, as long as these values are empty in the file you are importing. IOW, this note seems to suggest you can retain the blacklist status field for a particular user. Best do some thorough testing with a test list to check if and how this works. And let us know of your experiences.soundwave wrote:3. If you import a random list of users and there happens to be a blacklisted user on there, will PHPlist still send that message to this particular user?
SELECT `email` FROM `phplist_user_user` WHERE `blacklisted` = 1;
UPDATE `phplist_user_user` SET `blacklisted` = 1 WHERE `bouncecount` >= 3
szucsati wrote:If you blacklist someone, he'll stay blacklisted even if you import the address again.
szucsati wrote:Blacklisting users with 3+ bounces:
- Code: Select all
UPDATE `phplist_user_user` SET `blacklisted` = 1 WHERE `bouncecount` >= 3
PHPList normally sets confirmed to false on reaching bounce threshold. There's a "define('BLACKLIST_EMAIL_ON_BOUNCE', 1);" option which should go to the config.php, but it doesn't seem to work. So you might want to manually blacklist users.
If you blacklist someone, he'll stay blacklisted even if you import the address again. If you just set to unconfirmed, and import the e-mail again, it will be confirmed again. Most of the times..
<?php
// ----- SETS ALL UNCONFIRMED AS BLACKLISTED BY DATE --------
$con = mysql_connect("localhost","MY DB LOGIN","MY DB PASS");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("MY DB NAME", $con);
$result = mysql_query("SELECT id, email FROM phplist_user_user WHERE bouncecount > '2' AND blacklisted = '0';");
$cnt = 0;
while($row = mysql_fetch_array($result)){
mysql_query("update phplist_user_user set blacklisted='1' where id='$row[id]';");
mysql_query("insert into phplist_user_blacklist(email,added) values ( '$row[email]','2010-04-29 11:59:58') ON DUPLICATE KEY UPDATE added = '2010-04-29 11:59:59';");
mysql_query("insert into phplist_user_blacklist_data(email,name,data) values ( '$row[email]','reason','BounceCount') ON DUPLICATE KEY UPDATE data = 'Bounce Count';");
$cnt = $cnt + 1;
}
mysql_close($con);
echo "$cnt Done";
?>
szucsati wrote:If you blacklist someone, he'll stay blacklisted even if you import the address again. If you just set to unconfirmed, and import the e-mail again, it will be confirmed again. Most of the times..
danitaz wrote:I was testing this just this morning, and came here to see if anyone else could confirm this. My tests showed that the blacklists "override" the subscriptions so that is good. I imported my master "mailing list" into phplist last week, and sent my first mailing this weekend, but I still have other smaller mailing lists to import, and I was afraid I would have to go manually through the blacklisted users and remove them from all of the lists. But it seems that even if I import an address into a new list, if the user is blacklisted, phplist will not send email to that user and this is good!
Thanks.
Danita
Return to Advanced Answers, Howtos, Tips & Tricks
Users browsing this forum: No registered users and 1 guest