爱意满满的作品展示区。
peakviber

写了个脚本, Gmail 中用自己的域名自动分类邮件

  •  
  •   peakviber ·
    alexkuang0 · Dec 30, 2020 · 2599 views
    This topic created in 2107 days ago, the information mentioned may be changed or developed.

    之前看到一个用 aws 根据收件地址自动分类邮件的项目 0x4447/0x4447_product_s3_email ,用 Gmail 实现了一个类似的方案(只需一个域名)。

    代码和详细使用方法在 GitHub Gist

    实现的效果是:

    比如你的邮箱地址是 *@example.com,所有发送到这个域名下的邮件都转发到 gmail (当然推荐使用一个不常见的二级域名)

    • 发送至 [email protected] 的邮件会出现在子标签 newsletter 中
    • 用 - 分隔多个标签。例如,发送至 [email protected] 的邮件会出现在子标签 newsletter 和 github 中
    • 用 . 创建层级。例如,发送至 [email protected] 的邮件会出现在子标签 accounts > github 中
    3 replies  •  2021-01-03 15:53:39 +08:00
    Shazoo
        1
    Shazoo  
       Dec 31, 2020
    这个和 Gmail 自带的 filter 比,有啥优势?
    peakviber
        2
    peakviber  
    OP
       Dec 31, 2020
    @Shazoo #1 filter 和 label 要手动创建。
    dorothyREN
        3
    dorothyREN  
       Jan 3, 2021
    我搞了个 google voice 自动发短信的脚本。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2769 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 13:04 · PVG 21:04 · LAX 06:04 · JFK 09:04
    ♥ Do have faith in what you're doing.