← back to Qwen38 Viewer
__pycache__/mail-bridge.cpython-314.pyc
82 lines
+
���j9 � �L � R t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI t ^ RI
t
^ RIt^ RIH
t
^ RIHtHtHt ^ RIHt RtRtRtRt]P2 P5 R R
4 t]P2 P5 RR4 tR U u0 uF q P; 4 kK up t^t^(t R
t!Rt"]
PF PI 4 R, t%]
PF PI 4 R, t&R t'R t(R t)R t*R t+R t,R t-R t.R t/R t0R t1]2R8X d
]1! 4 R# R# u up i )u�
qwen mail bridge — lets ALLOWLISTED senders email qwen@agentabrams.com and get
an inline reply from the local uncensored qwen3.8-27b-heretic (Ollama).
ARMED per Steve's explicit authorization (2026-08-19).
Hard safety controls (this fronts an UNCENSORED model + sends outbound mail):
* ALLOWLIST-ONLY: replies exclusively to the 4 addresses below. Any other
sender -> marked read, logged, NEVER answered (not an open relay).
* LOOP GUARD: never replies to itself, mailer-daemon, no-reply, or any message
carrying Auto-Submitted / Precedence:bulk / List-* headers.
* RATE CAP: at most MAX_PER_RUN replies per poll, MAX_PER_SENDER_DAY per sender.
* Body + token caps.
Runs once per invocation (launchd StartInterval). Idempotent via IMAP \Seen.
N)�EmailMessage)� parseaddr�
formataddr�
make_msgid)�requestzqwen@agentabrams.comzimap.purelymail.comzsmtp.purelymail.comiK �
OLLAMA_URLzhttp://127.0.0.1:11434�MODELzqwen3.8-27b-hereticip i� z.qwen-mail-bridge-state.jsonz.qwen-mail-bridge.logc �J � \ P P 4 P R R7 RV 2p\ V4 \ P R4 ;_uu_ 4 q"P
VR, 4 RRR4 R# + '