Skip to content

yo-chanan/gmail-imapfilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extremely minimal service that listens for Gmail "new mail" push notifications (using the built-in imapfilter), then pops up a system notification (showing you the email sender, subject and body) with sound.

(I wrote this because I couldn't find a barebones system service that configures imapfilter service to use IMAP IDLE with Gmail. The current options are heavy memory-hogging mail clients that support IMAP IDLE, or services/extensions that poll Gmail instead of getting pushes.)

Install

curl -s https://raw.githubusercontent.com/yo-chanan/gmail-imapfilter/master/install.sh | bash

Make changes

nano -w ~/.imapfilter/config.lua
systemctl --user daemon-reload
systemctl --user restart imapfilter.service
journalctl --user -u imapfilter.service -f

Uninstall

sudo apt rm imapfilter libnotify-bin pulseaudio-utils
systemctl --user disable --now imapfilter.service
rm -rf ~/.imapfilter
rm -f ~/.config/systemd/user/imapfilter.service
rm -f ~/.config/systemd/user/default.target.wants/imapfilter.service
rm -f ~/.local/state/imapfilter-lastuid
systemctl --user daemon-reload

About

Extremely minimal service that listens for Gmail "new mail" push notifications (using the built-in imapfilter), then pops up a system notification (showing you the email sender, subject and body) with sound.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors