./example/mailreader/e2e.sh # 默认:IMAP 明文 143 + --allow-insecure
E2E_TUNNEL=1 ./example/mailreader/e2e.sh # 隧道:本地 stunnel → IMAPS 993./example/mailreader/e2e_two_account.sh# 列出最近 5 封(UID 用于后续按信取回——序号跨会话会因删信平移)
IMAP_PASS=$(cat ~/.pgp-demo/smtp-pass) moon run example/mailreader -- \
--imap-host 127.0.0.1 --imap-port 1143 \
--user me@example.com --pass-env IMAP_PASS --last 5
# 按 UID 取回 + 解密 + 验签(附件落盘到 --out)
... --fetch 1730062003 \
--keys my-private-key.asc --certs senders-public-key.asc \
--out ~/fetchedclient = yes
[imaps]
accept = 127.0.0.1:1143
connect = imap.example.com:993
verifyChain = yes
CAfile = /opt/homebrew/etc/openssl@3/cert.pem
checkHost = imap.example.comInstall
Download zipPure-MoonBit OpenPGP implementation (RFC 4880/9580): email encryption, decryption, signing and verification, interoperable with GnuPG and gopenpgp.