HbGmail4maillist - 101camp/playground GitHub Wiki

设置 Gmail 关注 maillist 邮件

概述

设置 gmail 的 filter(过滤器) 和 label(标签),以便更好关注自怼圈 maillist(邮件列表) 邮件

背景

操作

标签设置

简述

观察自怼圈 maillist(邮件列表) 邮件,从内容上大致可分为以下5种

  • googlegroups maillist
    • repository commit log 仓库提交历史 --> label: DU4Log
    • 通知公告等其他邮件,如怼周刊,会议预约 --> label: DUGroup
  • github repository maillist --> label: DU4NotLog
    • issue 问题讨论
    • commit comment 提交评论
    • pull request 合并请求

但 github 的 issue 和 commit comment 难区分,且区分价值不大。 一定要实现可能需要 goolge app script,参见 Better github gmail filter Andreas Fuchs' Journal filter gist

再从与自己相关程度来看

  • github repository maillist
    • reference me 与自己相关 --> label:DU4Me
      • assgin 任务负责人
      • author 作者
      • mention 提及
      • team_mention 提及所在团队
    • subscribe 订阅

gmail 标签可嵌套,标签可有子标签,如同目录,综合考虑,标签设置

  • debugUself
    • DU4Log
    • DUGroup
    • DU4NotLog
    • DU4Me

具体步骤

  1. 点击 左栏的 more 更多 -> Create new label 创建新标签 ->
  2. 名称输入 debugUself -> 创建 create
  3. Create new label -> 输入名称 -> 勾选 nest label under(将标签嵌套于) 下拉单选 debugUself -> create
  4. 重复 步骤3 依次添加余下标签

过滤设置

简述

gmail 关键词搜索的结果可用于过滤,测试方法是搜索关键词,由结果查看将被过滤邮件

简单介绍搜索符(英语字符),详尽信息请参考 Gmail Search operators

  • 不支持特殊字符,如 @#$%^&*()=+[]\
  • 不区分大小写
  • subject:(aword bword) 搜索同时主题含有两个词邮件
  • {cword dword} 搜索含有其中一个词邮件(主题 邮件内容等)
  • "Log message" 搜索含有该短语邮件
  • lunch -beef 搜索 lunch ,移除含有 beef 邮件

找出一类邮件特征,主要观察

  • 主题特征
  • 邮件列表 收发地址 抄送地址
  • 内容是否有固定内容
  • 含有附件

以 DUGroup 为例,其特征有

  • 主题不含 [DebugUself/du4proto]
  • 查看邮件收发 mailing list 是 [email protected] 在含有特征结果中移除含有 [DebugUself/du4proto] 的邮件,过滤关键词是 subject:(-"DebugUself") list:"[email protected]" 相应行为是 打上标签 debugUself/DUGroup,从不放进垃圾箱

具体步骤

  1. 搜索框输入关键词后回车
  2. 查看结果,满意后点击搜索框最右处向下三角,点击 Create filter with this search 以此搜索创建过滤器
  3. 选择 打上相应标签 不放进垃圾邮件箱 等操作
  4. 点击 create filter 创建过滤器

具体过滤器

Matches: 关键词 Do this: 操作

  • Matches: list:"DebugUself/du4proto <du4proto.DebugUself.github.com>" Apply label "debugUself", Never send it to Spam
  • Matches: list:"[email protected]" Do this: Apply label "debugUself", Never send it to Spam
  • Matches: list:"DebugUself/du4proto <du4proto.DebugUself.github.com>" Do this: Apply label "debugUself/DU4NotLog", Never send it to Spam
  • Matches: subject:("DebugUself") list:"[email protected]" Do this: Apply label "debugUself/DURepoLog", Never send it to Spam
  • Matches: subject:(-"DebugUself") list:"[email protected]" Do this: Apply label "debugUself/DUGroup", Never send it to Spam
  • Matches: cc:{[email protected] [email protected] [email protected] [email protected] [email protected]} list:"DebugUself/du4proto <du4proto.DebugUself.github.com>" Do this: Apply label "debugUself/DU4Me", Never send it to Spam, Mark it as important

小结

  1. 创建标签
  2. 创建过滤器
  3. 观察新邮件标签,由反馈改进

参考

增补

关联

ChangeLog

  • 170503 stonemask init wiki 1st editon 42min
  • 170429 stonemask init issue draft 93min
⚠️ **GitHub.com Fallback** ⚠️