Debian - Add the checking mail notification - mutt
add 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,搞定
Author: Shine Zhong
Date: 2011-01-11 16:49:18 CST
HTML generated by org-mode 7.4 in emacs 23
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/737564/viewspace-683521/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/737564/viewspace-683521/
Debian - Add the checking mail notification - mutt相关推荐
- Android Notification通知详细解释
Android Notification通知具体解释 Notification: (一).简单介绍: 显示在手机状态栏的通知. Notification所代表的是一种具有全局效果的通知,程序一般通过N ...
- 俄罗斯邮箱Mail.ru的登录及获取邮箱内容(c#实现)
登录网址: https://account.mail.ru/login ***********************注:本文仅作学习交流,如有侵权,请私信删除. 1. 访问登录页面: 获取cooki ...
- Android N Preview Notification API (通知)
通知 本文内容 直接回复 捆绑通知 自定义视图 Android N 引入了一些新 API,允许应用发布具有高度可见性和交互性的通知. Android N 扩展了现有 RemoteInput 通知 AP ...
- .Net写的Mail Util(C#)
前两天用.Net写了个发送mail的util,贴上来.刚接触C#,呵呵.... .net 1.1的..net 2.0里面关于Mail的API有所变动. .code { font-size: 12; f ...
- notification源码分析_antd源码解读(10)- notification
这是一个全局变量的组件,可以在任意地方调用其函数就能够生成一个,我们就来看看这个组件又是用了什么奇巧淫技来实现的 - 注意:解读的源码版本为2.13.4 rc-notification版本为2.0.0 ...
- antd 源码解读 notification
Notification 这是一个全局变量的组件,可以在任意地方调用其函数就能够生成一个,我们就来看看这个组件又是用了什么奇巧淫技来实现的. -- 注意:解读的antd的源码版本为 2.13.4 rc ...
- Gitea配置文件说明
网址:https://github.com/go-gitea/gitea/blob/master/custom/conf/app.example.ini 部分字段的翻译(不全):https://doc ...
- ubuntu安装postfix+esmtp验证配置
https://help.ubuntu.com/community/Postfix Community Documentation Login to Edit Ubuntu Documentation ...
- Linux下的motion detection(最简单的办公室监控系统) 邮件自动发送
http://caspian.dotconf.net/menu/Software/SendEmail/ 邮件的地点 http://skpsun.blog.163.com/blog/static/2 ...
最新文章
- PluckerNet:一种基于3D线匹配的配准网络(CVPR2021)
- pandas使用resample函数计算每个月的统计均值、使用matplotlib可视化特定年份的按月均值
- 就业丨速成班出来的AI人才,老板到底要不要?
- c++ 调用python
- 转载:EBS上用过的一些接口表整理信息
- 为什么Java中有多态?
- scrapy-splash抓取动态数据例子八
- 这 17 个 JVM 参数,高级 Java 必须掌握!
- Flex组件的项目渲染器(ItemRenderer)使用总结
- 剪映电脑版_七款手机剪辑app,效果堪比电脑软件
- python面向对象编程项目_Python学习之==面向对象编程(一)
- js实现登录表单验证
- 中兴捧月比赛DIJKSTRA派算法说明
- 清华姚班出身,95后博士生从网瘾少年到发表顶会论文的科学家
- china-pub第3波免费赠书正式推出,精品赠书20册,抢楼得书!
- 苹果手机上网速度慢_是什么原因导致手机网速慢!
- IDEA统计代码量Statistic插件
- java课程管理系统_基于JAVA学生课程管理系统.doc
- 从拉普拉斯矩阵说到谱聚类
- c语言 floyd优化,Floyd(弗洛伊德)算法(C语言)