Learn about Centmin Mod LEMP Stack today
Become a Member

WP CLI - auto update emails

Discussion in 'Other Centmin Mod Installed software' started by joshuah, Apr 28, 2017.

  1. joshuah

    joshuah Member

    116
    14
    18
    Apr 3, 2017
    Ratings:
    +16
    Local Time:
    11:42 AM
    Hello,

    Is there any way to disable the email notifications each time it runs? The only time I want to be notified is when an actual update takes place.

    Thank you.
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:42 AM
    Nginx 1.13.x
    MariaDB 5.5
    Currently, there's no way to only notify if actual updates take place. You can edit your sepcific wp_updater_yourdomain.com cronjob though yourself to remove email notification altogether but i wouldn't recommend that. Better to just use your email client and setup a filter for wp update emails to properly archive them.
     
  3. RB1

    RB1 Active Member

    281
    72
    28
    Nov 11, 2016
    California
    Ratings:
    +119
    Local Time:
    5:42 PM
    Nginx 1.13.x
    MariaDB 10.1.x
    I use a Gmail filter to automatically apply the label "Server Notifications" and mark it as read.
    "Skip the Inbox" is helpful to keep your email from becoming cluttered.
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:42 AM
    Nginx 1.13.x
    MariaDB 5.5
    what i do as well though you can also filter on email text content too ;)
     
    • Agree Agree x 1
  5. joshuah

    joshuah Member

    116
    14
    18
    Apr 3, 2017
    Ratings:
    +16
    Local Time:
    11:42 AM
    Okay. That's what I'll end up doing.. however, is there an example of a keyword for when something goes wrong? So I can make sure that it does not skip the inbox.
     
  6. RB1

    RB1 Active Member

    281
    72
    28
    Nov 11, 2016
    California
    Ratings:
    +119
    Local Time:
    5:42 PM
    Nginx 1.13.x
    MariaDB 10.1.x
    Not sure...maybe wait for eva's response.
    From my experience, I've only ever received Wordpress WP-CLI notitications from my server. No emails regarding server crashes or other issues. Perhaps I have something setup incorrectly :p
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:42 AM
    Nginx 1.13.x
    MariaDB 5.5
    the email notifications will be for wp plugin status and updates that are made, error messages generally won't be part of it

    But it's easy to check for keywords. Just look at your past email history of wp-cli auto updates and their email contents and pick out keywords you want to monitor for

    examples of keywords