Blog IndexPosts by TagHome

Speaking email notifications

Posted <2017-03-23 Thu 15:39> by Aaron S. Jackson.

Just a bit of fun:


inotifywait -m $base -e create -e moved_to |
    while read path action file; do
    from=$(grep ^From: "$base/$file" \
         | head -n1 \
         | cut -d':' -f2 \
         | cut -d'<' -f1)
    echo "You have an email from $from" | espeak

Wanting to leave a comment?

Comments and feedback are welcome by email (

Related posts:

Tags: linux

Blog IndexPosts by TagHome

Copyright 2007-2022 Aaron S. Jackson (compiled: Sun 2 Jan 00:24:10 GMT 2022)