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

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

  •  
  •   alexkuang ·
    alexkuang0 · Dec 30, 2020 · 2362 views
    This topic created in 1969 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] 的邮件会出现在子标签 newslettergithub
    • . 创建层级。例如,发送至 [email protected] 的邮件会出现在子标签 accounts > github
    3 replies    2021-01-03 15:53:39 +08:00
    Shazoo
        1
    Shazoo  
       Dec 31, 2020
    这个和 Gmail 自带的 filter 比,有啥优势?
    alexkuang
        2
    alexkuang  
    OP
       Dec 31, 2020
    @Shazoo #1 filter 和 label 要手动创建。
    dorothyREN
        3
    dorothyREN  
       Jan 3, 2021
    我搞了个 google voice 自动发短信的脚本。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   909 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 21:59 · PVG 05:59 · LAX 14:59 · JFK 17:59
    ♥ Do have faith in what you're doing.