Move inactive subscriber's command

Move inactive subscriber's command

Starting with version 1.3.7.1 we introduced the move-inactive-subscribers command which will move subscribers that did not open a campaign or did not click a link in a campaign in a given period of time.
The command has the following signature:

command: /usr/bin/php -q {ABSOLUTE_PATH_TO}/apps/console/console.php move-inactive-subscribers --src=LIST_UID --dst=LIST_UID --time=EXPRESSION --limit=1000
--src=UID where UID is the source list unique 13 chars id.
--dst=UID where UID is the destination list unique 13 chars id.
--time=EXPRESSION where EXPRESSION can be any expression parsable by php's strtotime function. ie: --time="-6 months".
--limit=1000 where 1000 is the number of subscribers to process at once.

So a valid call to this command will look like:

/usr/bin/php /var/www/html/apps/console/console.php move-inactive-subscribers --src="hd930corv7399" --dst="nc841jp27ze77" --time="-6 months" --limit=1000 --verbose=1

The above will move 6-month inactive subscribers from list having the UID hd930corv7399 into the list with the UID nc841jp27ze77 and will do this by processing 1000 subscribers at once.
You can place this command in a cron job to run once a week (on Sunday) to move inactive subscribers, like:

* * * * 0 /usr/bin/php /var/www/html/apps/console/console.php move-inactive-subscribers --src="hd930corv7399" --dst="nc841jp27ze77" --time="-6 months" --limit=1000 --verbose=0 >/dev/null 2>&1
    • Related Articles

    • Delete inactive subscribers command

      Starting with version 1.3.7.1 we introduced the delete-inactive-subscribers command which will delete subscribers that did not open a campaign or did not click a link in a campaign in a given period of time. The command has the following signature: ...
    • Redirect the subscriber to a custom thank you page after subscribe

      In order to redirect the subscriber to another page than the default one from AppMail after he subscribes, you have to follow a few simple steps. First, you have to enable the “List form custom redirect” extension which is disabled by default. This ...
    • Debug send-campaigns command

      Starting with version 1.3.5, the cron job command that sends campaigns (send-campaigns) has been modified so that it will help debugging sending speed. In order to make use of this functionality, you should have ssh access to your server so that you ...
    • Delete campaigns command

      Deleting old campaigns, that you don't need anymore, will free up a lot of disk space. This in turn will result in a faster application because there will be less data AppMail has to go through in order to complete operations. The delete-campaigns ...
    • Clear cache command

      The way AppMail works in most cases where performance is important, is that it fetches the data from the database once, then it will store it in cache and serve it from there for as much as possible. This allows AppMail to perform fast because data ...