Unreasonable default path
The default path should not be path/to/imapnotify.conf
as that is obviously just a path for documentation and readme. A good default is probably
$XDG_CONFIG_HOME/imapnotify/imapnotify.conf
while $XDG_CONFIG_HOME
should of course default to $HOME/.config/
, as per XDG Base Directory specification.