im simple message default title
PostgreSQL coub css express.js freeware git jquery laravel links linux macos mysql node.js php python task1 ubuntu vim virtualbox анекдот игры интересно музыка стихи цитаты

How to check GMail inbox from command line August 01, 2016
First of all we have to create an application password here.
Then, create bash script like this one:

# crontab example line
# */4 * * * * /home/username/ 

export DISPLAY=:0


/usr/bin/curl -u $username:$password --silent "" | \
  grep -oPm1 "(?<=<title>)[^<]+" | sed '1d' | \
  while read line; do 
    /usr/bin/notify-send -i xfce-newmail "You've got new mail!" "$line" -t 5000
After that, you can add this script to your cron using crontab -e. As you see, notify-send is used here to display system notification (XFCE, in my case) for each new mail received, in your case you can change that in the way you like.
Original note here.


No comments here yet.
You have to login to post a new comment.
HO-HO-HO!! L10 is here.
dance-dance #3
update new 01.10.2023