Want more timely Centmin Mod News Updates?
Become a Member

Modified Email Format

Discussion in 'Feature Requests & Suggestions' started by ethanpil, Jan 15, 2016.

Tags:
  1. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    3:45 PM
    I am wondering what others think about the email notifications? In my gmail account, I receive the CentMinMod notification text as attachments called "noname" like the image below. It is quite cumbersome to read the emails as I need to download the attachment, and rename to open with a default text viewer. This happens with allthe CentMinMod notifications, including new vhosts, cron notifications, etc.

    Can we include the text in the body of the email to make it more searchable in webmail? Whats the reason not to?

    [​IMG]
     
  2. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    is this for emails you received from this community.centminmod.com own forums ? or you mean from your centmin mod lemp installed server ?

    i don't get that with my installs any all, so something in your emails is making gmail serve them to you that way i think
     
  3. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    3:45 PM
    These are from my Lemp server. They are generally Centos 7 based fresh installs. Happened every time. Wordpress email notifications arrive normally ... if you think that it's a local configuration issue, I am not even sure where to look...
     
  4. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    when you receive gmail noname attachements check the original headers and see what content-type they're sent with plain text or binary or octet-stream

    Code:
    User-Agent: Heirloom mailx 12.5 7/5/10
    MIME-Version: 1.0
    Content-Type: text/plain; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    
     
  5. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    3:45 PM
    Yup, there it is. Octet stream. Is this due to the default centos/linode config or a centmin setting?

    Code:
    Subject: Wordpress WP-CLI Auto Update Fri Jan 15 08:02:44 UTC 2016
    User-Agent: Heirloom mailx 12.5 7/5/10
    MIME-Version: 1.0
    Content-Type: application/octet-stream
    Content-Transfer-Encoding: base64
    
     
  6. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    no it's due to contents of your email itself see mailx sends text body as an attachment - Red Hat Customer Portal
     
  7. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    3:45 PM
    Am I the only centminmod user experiencing this 'expected behavior'? I dont know what character could cause this....
     
  8. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    no it happens to any emails that have non-US-ASCII or non-printable characters and it's how Gmail deals with it when it receives such. I'll rework wordpress auto updater emails to use mutt instead and see

    also see mailx(1): send/receive Internet mail - Linux man page
     
    • Informative Informative x 1
  9. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    3:45 PM
  10. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    indeed nice.. but wordpress auto update isn't using cat so will see what i can come up with :)
     
    • Optimistic Optimistic x 1
  11. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    ah fixed for wordpress auto updater email notifications at least in your wordpress cron file wp_updater_yourdomain.com.sh

    you can find path to that file by listing your cronjobs which usually is at /root/tools/wp_updater_yourdomain.com.sh
    Code:
    crontab -l
    change last line

    from
    Code:
    } 2>&1 | mail -s "Wordpress WP-CLI Auto Update $(date)" $EMAIL
    to so you pipe output through dos2unix :)
    Code:
    } 2>&1 | dos2unix | mail -s "Wordpress WP-CLI Auto Update $(date)" $EMAIL
     
    • Like Like x 1
  12. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    3:45 PM
    What about new vhost creation? Did you take a look there? Also happens to me every time I add a new vhost or vhost+WP ... thanks
     
  13. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    you mean centmin.sh menu option 22 ? option 2 doesn't send emails only option 22 does but that is send from wordpress php itself not server emails
     
  14. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    3:45 PM
    I'm not talking about the WordPress confirmation emails, those have always come in correctly. I mean the centminmod emails that include the new FTP passwords, as well as the shell commands to delete the vhost, etc
     
  15. eva2000

    eva2000 Administrator Staff Member

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    3:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Useful Useful x 1