admin 管理员组文章数量: 887021
Debian
UP | HOMEadd checking mail notification
- Add the checking mail notification for Mutt - 为Mutt添加新邮件提醒
- 通过mailcheck
- Install the notify-send app, in Debian, the package is libnotify-bin
- Install mailcheck app
- Configure the mailcheck
- Write shell script. to monite the mail
- Auto run script. when login
- 通过mail-notification
- 安装
- 启动软件
- 配置
- 通过mailcheck
Add the checking mail notification for Mutt - 为Mutt添加新邮件提醒
通过mailcheck
Install the notify-send app, in Debian, the package is libnotify-bin
$sudo aptitude install libnotify-bin
Install mailcheck app
$sudo aptitude install mailcheck
Configure the mailcheck
Create the file: ~/.mailcheckrc, and add the following lines:
$(HOME)/mail/inbox $(HOME)/mail/work
Write shell script. to monite the mail
Here is the shell file content
#/bin/bashlast=0 cur=0while [ : ] domailcheck | grep new 2>&1 >/dev/nullif [ $? -eq 0 ]thencur=$(mailcheck | awk 'BEGIN {sum=0} ; $4~/new/ {sum=sum+1}; END {print sum}')if [ $cur -ne $last ]thennotify-send -i "/usr/share/pixmaps/mutt.xpm" "New Mail: $cur"last=$curfifisleep 300 done
Auto run script. when login
Add the following line into your .bashprofile
. ~/mail/mail-notify.sh &
通过mail-notification
看来是我太原始了,才发现mail-notification这个好东西,几乎不需要配置
安装
$sudo aptitude install mail-notification
启动软件
打开 应用程序-互联网-Mail Notification
配置
配置相当简单,类型选择autodetected,路径选择mail文件夹,比如/home/shine/mail/work,搞定
Date: 2011-01-11 16:49:18 CST
HTML generated by org-mode 7.4 in emacs 23
来自 “ ITPUB博客 ” ,链接:/,如需转载,请注明出处,否则将追究法律责任。
转载于:/
本文标签: debian
版权声明:本文标题:Debian 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1688276830h200505.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论