网淘吧来吧,欢迎您!

ProtonMail技能使用说明

2026-04-01 新闻来源:网淘吧 围观:13
电脑广告
手机广告

ProtonMail 技能

通过以下任一方式使用 IMAP 访问 ProtonMail:

  • Proton Bridge(官方推荐)
  • hydroxide(第三方,无头模式)

设置

选项 1:Proton Bridge(Docker)

# Pull and run
docker run -d --name=protonmail-bridge \
  -v protonmail:/root \
  -p 143:143 -p 1025:25 \
  --restart=unless-stopped \
  shenxn/protonmail-bridge

# Initial login (interactive)
docker run --rm -it -v protonmail:/root shenxn/protonmail-bridge init
# Then: login → enter credentials → info (shows bridge password) → exit

选项 2:hydroxide(无头模式)

# Install
git clone https://github.com/emersion/hydroxide.git
cd hydroxide && go build ./cmd/hydroxide

# Login
./hydroxide auth your@email.com

# Run as service
./hydroxide serve

配置

在以下位置创建配置文件~/.config/protonmail-bridge/config.env

ProtonMail

PROTONMAIL_HOST=127.0.0.1
PROTONMAIL_PORT=143
PROTONMAIL_USER=your@email.com
PROTONMAIL_PASS=your-bridge-password

或者直接设置环境变量。

使用

# List mailboxes
protonmail.py mailboxes

# Show recent inbox
protonmail.py inbox --limit 10

# Show unread emails
protonmail.py unread

# Search emails
protonmail.py search "keyword"

# Read specific email
protonmail.py read 123

每日扫描

脚本daily-scan.py根据以下条件识别重要邮件:

  • 重要发件人(银行、政府、学校)
  • 紧急关键词(DE/EN/NL)

通过脚本或环境变量配置重要模式。

Sieve 过滤器(ProtonMail)

推荐的自动排序筛过滤器:

require ["fileinto", "imap4flags"];

# Important emails - flag them
if anyof (
    address :contains "From" ["@bank", "@government"],
    header :contains "Subject" ["Urgent", "Dringend", "Belangrijk"]
) {
    addflag "\\Flagged";
}

# Newsletters - auto-read and move
if anyof (
    address :contains "From" "newsletter@",
    address :contains "From" "noreply@"
) {
    addflag "\\Seen";
    fileinto "Newsletter";
    stop;
}

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏

文章底部电脑广告
手机广告位-内容正文底部

相关文章

您是本站第393693名访客 今日有1篇新文章/评论