UP |  HOME

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
      • 安装
      • 启动软件
      • 配置

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相关推荐

  1. Android Notification通知详细解释

    Android Notification通知具体解释 Notification: (一).简单介绍: 显示在手机状态栏的通知. Notification所代表的是一种具有全局效果的通知,程序一般通过N ...

  2. 俄罗斯邮箱Mail.ru的登录及获取邮箱内容(c#实现)

    登录网址: https://account.mail.ru/login ***********************注:本文仅作学习交流,如有侵权,请私信删除. 1. 访问登录页面: 获取cooki ...

  3. Android N Preview Notification API (通知)

    通知 本文内容 直接回复 捆绑通知 自定义视图 Android N 引入了一些新 API,允许应用发布具有高度可见性和交互性的通知. Android N 扩展了现有 RemoteInput 通知 AP ...

  4. .Net写的Mail Util(C#)

    前两天用.Net写了个发送mail的util,贴上来.刚接触C#,呵呵.... .net 1.1的..net 2.0里面关于Mail的API有所变动. .code { font-size: 12; f ...

  5. notification源码分析_antd源码解读(10)- notification

    这是一个全局变量的组件,可以在任意地方调用其函数就能够生成一个,我们就来看看这个组件又是用了什么奇巧淫技来实现的 - 注意:解读的源码版本为2.13.4 rc-notification版本为2.0.0 ...

  6. antd 源码解读 notification

    Notification 这是一个全局变量的组件,可以在任意地方调用其函数就能够生成一个,我们就来看看这个组件又是用了什么奇巧淫技来实现的. -- 注意:解读的antd的源码版本为 2.13.4 rc ...

  7. Gitea配置文件说明

    网址:https://github.com/go-gitea/gitea/blob/master/custom/conf/app.example.ini 部分字段的翻译(不全):https://doc ...

  8. ubuntu安装postfix+esmtp验证配置

    https://help.ubuntu.com/community/Postfix Community Documentation Login to Edit Ubuntu Documentation ...

  9. Linux下的motion detection(最简单的办公室监控系统) 邮件自动发送

    http://caspian.dotconf.net/menu/Software/SendEmail/   邮件的地点 http://skpsun.blog.163.com/blog/static/2 ...

最新文章

  1. PluckerNet:一种基于3D线匹配的配准网络(CVPR2021)
  2. pandas使用resample函数计算每个月的统计均值、使用matplotlib可视化特定年份的按月均值
  3. 就业丨速成班出来的AI人才,老板到底要不要?
  4. c++ 调用python
  5. 转载:EBS上用过的一些接口表整理信息
  6. 为什么Java中有多态?
  7. scrapy-splash抓取动态数据例子八
  8. 这 17 个 JVM 参数,高级 Java 必须掌握!
  9. Flex组件的项目渲染器(ItemRenderer)使用总结
  10. 剪映电脑版_七款手机剪辑app,效果堪比电脑软件
  11. python面向对象编程项目_Python学习之==面向对象编程(一)
  12. js实现登录表单验证
  13. 中兴捧月比赛DIJKSTRA派算法说明
  14. 清华姚班出身,95后博士生从网瘾少年到发表顶会论文的科学家
  15. china-pub第3波免费赠书正式推出,精品赠书20册,抢楼得书!
  16. 苹果手机上网速度慢_是什么原因导致手机网速慢!
  17. IDEA统计代码量Statistic插件
  18. java课程管理系统_基于JAVA学生课程管理系统.doc
  19. 从拉普拉斯矩阵说到谱聚类
  20. c语言 floyd优化,Floyd(弗洛伊德)算法(C语言)

热门文章

  1. AndroMDA Getting started(七)
  2. 磁力云盒,自动静默关注店铺
  3. 计算机音乐谱毛不易,毛不易《平凡的一天》五线乐谱
  4. 15行代码轻松绕过淘宝反爬虫机制
  5. 矩阵 的逆、 迹、 秩
  6. KF与无迹卡尔曼滤波详解
  7. python 行情数据,拼多多股票:Python获取股票行情数据的一种方法
  8. win7下安装配置opengrok
  9. bios找不到硬盘模式选项如何解决?
  10. 微型计算机机安装硬盘教程,装机DIY之硬盘安装方法 不同硬盘安装方法图解教程...